Commit Graph

31593 Commits

Author SHA1 Message Date
Terrence Cole
3d1cb3d946 Bug 794700 - Remove a test exercising dead code; r=billm
--HG--
extra : rebase_source : 6a63c08d2c5e1561c8273c0bcca1e5f7a9f6f94d
2012-09-26 18:04:35 -07:00
Eric Faust
ca4e451aae Bug 793284 - Use non-freezing checks in TestCommonPropFunc() to avoid bogus invalidations. (r=djvj) 2012-09-26 19:02:56 -04:00
Eric Faust
4fdc845a26 Bug 792166 - Fix incorrect handling of |delete| in common accessor checking. (r=djvj) 2012-09-26 19:02:56 -04:00
Terrence Cole
c1fb5bcfc2 Bug 793823 - Exactly root Bindings when on the stack; r=billm
Currently, we rely on the marking of the origin script to keep the stack
binding's data live. This will not work with a moving GC.
2012-09-24 15:18:34 -07:00
Steve Fink
38aedf00b1 Bug 794494 - Clear the right buffer link when pruning and reversing the list of ArrayBufferViews. r=billm 2012-09-26 14:24:37 -07:00
Sean Stangl
ca83b746d0 Bug 794025 - Detect IC purging in JM generateNativeStub(). r=dvander 2012-09-26 14:53:16 -07:00
Terrence Cole
8f84ac4f61 Bug 794365 - Correctly finalize StaticStrings; r=billm
The StaticStrings were getting kept alive past the final GC.  This did not
matter before because we never needed to free external characters.  With
uninlining this assumption is no longer true.

--HG--
extra : rebase_source : 6d40aa130c582366f2effe16b5af67157824e37f
2012-09-26 14:17:55 -07:00
Terrence Cole
3eda1202a1 Bug 791322 - Move Rooted to js:: namespace; r=billm
These should not be part of the public API.

--HG--
extra : rebase_source : 00a69ee54f06e3f557cd9ec2f3b059df10aa32df
2012-09-24 18:08:22 -07:00
Bill McCloskey
d23b971c32 Bug 787856 - Use lazy protos for cross-compartment wrappers (r=bholley) 2012-09-03 16:42:22 -07:00
Bill McCloskey
c53e57f4b2 Bug 787856 - Convert JS_GetPrototype to support lazy protos (r=bhackett) 2012-09-03 16:42:17 -07:00
Bill McCloskey
1f195f679b Bug 787856 - Convert js::GetObjectProto to support lazy protos (r=bhackett) 2012-09-03 16:42:10 -07:00
Bill McCloskey
7f9b2c5ac7 Bug 787856 - Initial support for lazy prototypes (r=bhackett) 2012-09-26 09:49:20 -07:00
Kannan Vijayan
13ae73c044 Bug 790051 - Add IonMonkey OOLNativeGetterExitFrame to support callouts to native getters from OOL IC stubs. (r=jandem) 2012-09-26 12:05:50 -04:00
Makoto Kato
8c8368ef8b Bug 793583 - Remove WINCE related code from js/src. r=luke 2012-09-26 15:48:41 +09:00
Makoto Kato
ecc11bb376 Bug 697064 - Remove MOZ_CHECK_HEADERS(mmintrin.h) from configure.in. r=khuey 2012-09-26 15:48:29 +09:00
Ryan VanderMeulen
4fc77da566 Backout bug 792215 for suspected Windows m-oth leaks.
CLOSED TREE
2012-09-25 22:40:56 -04:00
Bill McCloskey
0176bcf136 Bug 779073 - Don't treat GC verifier as an incremental GC (r=terrence) 2012-09-25 17:04:17 -07:00
Ehsan Akhgari
23e1abde57 Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug
This is the full implementation of the AudioBuffer object.  There are
two ways to create these objects from an audio context and this patch
implements only one of them.

The construction of the AudioBuffer object is a two step process: the
object should be created with operator new first, and then
InitializeBuffers should be called on it.  InitializeBuffers is
fallible, because it uses the JS API to create the underlying typed
arrays, but that's fine, since the length of the buffers comes from web
content, and we don't want to use infallible allocations for those
anyways.

We hold on to the JS objects from the C++ implementation, and trace
through all of those objects, so that a GC does not kill those object
without us knowing.

The buffer should be possible to manipulate from both C++ and JS, and
the C++ object probably needs to support a set of methods for the C++
callers at some point.
2012-09-25 17:58:50 -04:00
Kannan Vijayan
5baa27268e Bug 792215 part 2. Convert old proxy bindings to JSNative getters and setters. r=peterv,ejpbruel 2012-09-25 14:44:40 -04:00
Boris Zbarsky
9b67eb7d78 Bug 792215 part 1. Convert quickstubs to using JSNative getters and setters. r=peterv 2012-09-25 14:44:40 -04:00
Benjamin Peterson
ba16ebc540 Bug 794065 - Fix array literals with spread and holes at the end. r=jorendorff 2012-09-25 14:30:37 -04:00
Steve Fink
7689779707 Bug 762908 followup - only null out window.SpecialPowers when window exists. r=terrence
--HG--
extra : rebase_source : 4a894ddf5036e42870573db212e056012f35829e
2012-09-25 11:17:47 -07:00
Steve Fink
12c1e63bd1 Bug 789295 - Add special multi-view array buffer sweep pass to eliminate finalizers and thus allow background sweeping. r=billm
--HG--
extra : rebase_source : f71b9546ad3e511fb2a32d8bc24f39ec70e2f630
2012-09-18 09:58:36 -07:00
Steve Fink
e950025ece Bug 789295 - Make a BufferView superclass for ArrayBufferView types to enforce common slot numbers. r=billm
--HG--
extra : rebase_source : ac621999a9bc45bda2ea3c379a887a1dc5764772
2012-09-11 16:47:22 -07:00
Steve Fink
662cb3a714 Bug 789295 - Reformat class method declarations to look like rest of spidermonkey. r=billm
--HG--
extra : rebase_source : 3dedf219ae696b70136d83888522dda95845a578
2012-09-18 09:58:36 -07:00
Steve Fink
ece2350b8a Bug 791573 - Finalize ArrayBuffers in the background. r=billm
--HG--
extra : rebase_source : 15fdc10c2208b0d49b822ac1ac1d5e78682bc697
2012-09-18 09:58:36 -07:00
OHZEKI Tetsuharu
4872460b7b Bug 791944 - Use Object.defineProperty() instead of __defineGetter__ in XPCOMUtils.defineLazyGetter(). r=mak77 2012-09-25 11:04:25 -04:00
Jan de Mooij
5d62355423 Bug 792944 - Idempotent caches should reject singleton properties that require monitoring. r=dvander 2012-09-25 16:16:46 +02:00
Benjamin Peterson
16a62a6605 Bug 793513 - Only set properties on the rest array if it doesn't have unknown ones. r=jandem 2012-09-25 09:21:40 -04:00
Benoit Jacob
64b67de1c3 Bug 750862 - Implement WEBGL_compressed_texture_pvrtc - r=jgilbert 2012-09-25 08:49:28 -04:00
Benoit Jacob
faf08d911a Bug 790712 - Implement WEBGL_compressed_texture_atc - r=jgilbert 2012-09-25 08:49:28 -04:00
Mike Hommey
c29b3a40c6 Bug 792685 - Add a way to have automagically inherited variable definitions in Makefiles. r=ted 2012-09-25 14:47:20 +02:00
Mike Hommey
a94a46d3c8 Bug 793634 - Force builds to be compatible with gtk 2.18/glib 2.22. r=karlt 2012-09-25 14:47:18 +02:00
Ted Mielczarek
1446c24a20 bug 792391 - Add a TARGET_LOCAL_INCLUDES variable to be used for compiling target sources only, not host sources. r=glandium 2012-09-20 09:46:04 -04:00
Nicholas Nethercote
71bc79b4c8 Bug 793588 (part 2) - Exactly root jsiter.{cpp,h}. r=sfink.
--HG--
extra : rebase_source : ffdd302bbad433d6a67e7b7ff8b631600c4a3594
2012-09-23 20:53:27 -07:00
Nicholas Nethercote
169ac2b168 Bug 793588 (part 1) - Remove vacuous JSObject* parameter to Enumerate() et al. r=sfink.
--HG--
extra : rebase_source : 04aa15327f3040b19080dd8be5c169eef56ca4ca
2012-09-20 23:42:44 -07:00
David Anderson
92e087e715 Use js_free on fresh slots instead of js_delete (bug 793385, r=billm). 2012-09-24 14:41:00 -07:00
David Anderson
a2df9cbb13 Fix slot computation bug in newCallObject (bug 793257, r=luke). 2012-09-24 13:48:21 -07:00
Bobby Holley
a25701a3f7 Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
8188b09b4e Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Bobby Holley
8fbb34e584 Bug 792036 - Fix sandbox xpcshell tests. r=gabor
I want gabor to look at these.
2012-09-24 14:46:28 +02:00
Bobby Holley
373e284d28 Bug 792036 - Add a SpecialPowers API to provide access to the Components object in various forms. r=mrbkap,ted
Now that window.Components is no longer acccessible to page JS, we need a way
to access it in mochitests. So this patch provides SpecialPowers.Components,
which is the bonafide Components object for the window upon which SpecialPowers
is defined. It also provides SpecialPowers.{Cc,Ci,Cr,Cu}, which are SpecialPowers-wrapped
versions of their respective sub-objects (with the exception of Ci, which is unwrapped).
2012-09-24 14:46:27 +02:00
Bobby Holley
93412f5166 Bug 792036 - Factor out glue code to get the JS Components object for a scope. r=mrbkap 2012-09-24 14:46:27 +02:00
Bobby Holley
0cc9deb20c Bug 792036 - Refactor AttachComponentsObject API to allow an explicit target. r=mrbkap
The aGlobal API is currently unnecessary, since it should always be equal to the global obtained from the scope. But we'll want to manually specify the target object in subsequent patches, so make it an optional argument that's currently never passed.
2012-09-24 14:46:27 +02:00
Bobby Holley
c434d69930 Bug 783702 - Call through to get() for hasPrototype() path in getElementIfPresent(). r=ejpbruel 2012-09-24 12:05:50 +02:00
Nicholas Nethercote
7c9a86ce59 Bug 793086 (part 2) - Remove jsproto.tbl. r=jwalden.
--HG--
extra : rebase_source : b72b37267e5f26f2ab1e52d90673745124c760ae
2012-09-20 23:00:08 -07:00
Nicholas Nethercote
3ed4a35591 Bug 793086 (part 1) - Convert JSClassInitializerOp parameter to HandleObject. r=sfink.
--HG--
extra : rebase_source : e8d20aad8abc0bf85df1f05e90be1ce46e8f0125
2012-09-20 22:17:49 -07:00
Bill McCloskey
994a0d0b5f Bug 788362 - 9,440 bytes in 107 blocks are definitely lost as detected by Valgrind with selectforgc. r=jcoppeard 2012-09-23 21:30:30 -04:00
Shu-yu Guo
41a64b55c5 Bug 789812 - Change immutability behavior to match that of frozen Objects (r=jwalden) 2012-09-21 21:06:12 -07:00
David Anderson
0beb960784 Invalidate scripts when forbidding compilation (bug 792552, r=jandem). 2012-09-21 16:41:23 -07:00