Commit Graph

32034 Commits

Author SHA1 Message Date
Ryan VanderMeulen
c65d3dd4a6 Merge m-c to inbound. 2012-10-26 16:06:04 -04:00
Daniel Holbert
eb92e39eba Bug 805883: Add (void) cast to "use" an otherwise-unused variable, as far as GCC build-warning is concerned, in gc/Root.h. r=jorendorff 2012-10-26 11:41:14 -07:00
Bill McCloskey
f2fa20df59 Bug 803907 - Simplify GC root iteration (r=terrence) 2012-10-26 11:53:31 -07:00
Bill McCloskey
04081196d0 Bug 803907 - Remove some unused GC functions (r=terrence) 2012-10-26 11:53:25 -07:00
Bill McCloskey
9d53f808b3 Bug 803907 - Remove some GC debugging functions (r=terrence) 2012-10-26 11:53:20 -07:00
Bill McCloskey
cae7c78fa1 Bug 803907 - Remove JS MapRoots (r=terrence) 2012-10-26 11:51:35 -07:00
Bill McCloskey
d44fdd4f00 Bug 692267 - Remove js/src/gc/Heap.h from INSTALLED_HEADERS (r=terrence) 2012-10-26 11:18:50 -07:00
Bill McCloskey
a6cd2f8c4f Bug 692267 - Remove jsgc.h from INSTALLED_HEADERS (r=terrence) 2012-10-26 11:17:24 -07:00
Nicholas Nethercote
ea1d28a21f Bug 804891 - Reduce LIFO_ALLOC_PRIMARY_CHUNK_SIZE from 128 KiB to 32 KiB. r=wmccloskey.
--HG--
extra : rebase_source : 41cbe9a405e2febe84ce1db3bf1dba9a19f53748
2012-10-25 17:55:31 -07:00
Ryan VanderMeulen
1664ce8a89 Backout 589b6766b99a (bug 786146) due to test bustage on a CLOSED TREE. 2012-10-25 20:05:13 -04:00
Andrew Quartey
3f4e29b9f0 Bug 792581 - part 20: Replace LL_UI2L macro with int64_t cast. r=ehsan 2012-10-25 19:25:57 -04:00
Nikhil Marathe
03b0de5c8a Bug 804174 - Inline CallerHasUniversalXPConnect with IsCallerChrome. r=mccr8 2012-10-25 16:10:53 -07:00
Brian Hackett
66d954cf70 Eagerly generate a single copy of Ion stubs and wrappers, bug 786146. r=dvander 2012-10-25 15:37:17 -07:00
Jason Orendorff
30b4906cc9 Bug 787703. r=terrence 2012-10-25 17:43:25 -04:00
Brian Hackett
9d1cc28b15 Allow canceling in-progress off thread ion compilations, bug 785761. r=dvander 2012-10-25 13:46:49 -07:00
Anant Narayanan
aba30683c2 Backout 4aef9921a9d6, build failed 2012-10-25 12:28:05 -07:00
Brian Hackett
0e9147405c Allow canceling in-progress off thread ion compilations, bug 785761. r=dvander 2012-10-25 12:00:00 -07:00
Bobby Holley
11a3279da2 Bug 797821 - Null check to fix intermittent orange. r=me 2012-10-25 18:36:45 +02:00
Ehsan Akhgari
8e702f60c5 Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
f3c0ac7a23 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
Bobby Holley
2afd934910 Bug 797821 - Address Ms2ger's review comments. r=me 2012-10-25 17:01:09 +02:00
Bobby Holley
35f4a1d02f Bug 797821 - Remove the XPConnect Compartment Set. r=mrbkap 2012-10-25 17:01:09 +02:00
Bobby Holley
e5281ffe10 Bug 797821 - Hoist XPConnect-y stuff out of the compartment private and into the XPCWrappedNativeScope. r=mrbkap
This change means we no longer have to keep around a set of XPConnect compartments.
We keep the compartment private around for non-xpconnecty stuff like about:memory
instrumentation that needs to happen on non-xpconnect compartments.
2012-10-25 17:01:09 +02:00
Bobby Holley
fecbbb3ade Bug 797821 - Removed the unused reserved slot for XPConnect globals. r=mrbkap 2012-10-25 17:01:09 +02:00
Bobby Holley
678c7b3e05 Bug 797821 - Remove JSCLASS_XPCONNECT_GLOBAL flag. r=mrbkap 2012-10-25 17:01:09 +02:00
Bobby Holley
2cf0594417 Bug 797821 - Decide whether we need to trace DOM stuff based on more relevant information than JSCLASS_XPCONNECT_GLOBAL. r=mrbkap
This will let us rip out that flag.
2012-10-25 17:01:08 +02:00
Bobby Holley
5d518d9c54 Bug 797821 - Remove FindInJSObjectScope and friends. r=mrbkap
\o/
2012-10-25 17:01:08 +02:00
Bobby Holley
0cdf333aaa Bug 797821 - Replace usage of XPCWrappedNativeScope::FindInJSObjectScope(ccx, obj) with GetObjectScope(obj). r=mrbkap 2012-10-25 17:01:08 +02:00
Bobby Holley
7ec5eb0580 Bug 797821 - Create XPCWrappedNativeScopes immediately after global creation. r=mrbkap 2012-10-25 17:01:08 +02:00
Bobby Holley
f0c6fb319b Bug 797821 - Remove xpc_NewSystemInheritingJSObject and cached mJSPrototypeObject. r=mrbkap
xpc_NewSystemInheritingJSObject is totally unnecessary now that the system bit
has been removed (\o/). Furthermore, the mJSPrototypeObject optimization is
really dumb. it complicates tracing significantly, and we don't actually use it
in any critical places: XPCWrappedNative and slim wrapper creation use a different
prototype, so this is used only for the creation of tearoff reflectors (seldom/
never used), XPCWrappedNativeProto objects, and the nohelper prototype on the
scope (once per scope).

We could actually just pass NULL to JS_NewObject and let it deal. However, this
would actually trigger a dynamic lookup for the prototype object of the
associated JSClass, which isn't what we want. So we just explicitly pass in
Object.prototype.
2012-10-25 17:01:08 +02:00
Bobby Holley
c2707a9093 Bug 797821 - Remove unused aNative parameter to XPCWrappedNativeScope creation. r=mrbkap 2012-10-25 17:01:08 +02:00
Bobby Holley
467b5d350e Bug 797821 - Stop storing mScriptObjectPrincipal. r=mrbkap 2012-10-25 17:01:08 +02:00
Bobby Holley
6e408995a1 Bug 797821 - Stop making nsXBLDocumentInfo and nsXULPrototypeDocument globals with XPConnect. r=mrbkap
We already weren't creating a scope for them. They're generally pretty isolated
and are just used for holding functions that get cloned into other scopes.
Apparently mccr8 once found an edge from an nsXULPrototypeDocument scope into
another scope, but I don't think that should really break anything.
2012-10-25 17:01:07 +02:00
Bobby Holley
2c3ca83d1f Bug 797821 - Allow compartment privates to be lazily created when using them just for storing about:memory URIs. r=mrbkap
This will allow us to stop making nsXULPrototypeDocument and nsXBLDocumentInfo
globals XPConnect globals.
2012-10-25 17:01:07 +02:00
Bobby Holley
115b01b88b Bug 797821 - Stop passing wantXrays directly to CreateGlobalObject. r=mrbkap
This can happen after the fact where it needs to.
2012-10-25 17:01:07 +02:00
Bobby Holley
9fa3c57db6 Bug 797821 - Loosen the CompartmentPrivate contract so that having one does not imply being in the compartment set. r=mrbkap
The compartment set goes away in later patches anyway. This is to allow us to
create compartment privates for things like XUL prototype document globals
without having to put them in the set and trace expandos and such.
2012-10-25 17:01:07 +02:00
Bobby Holley
c563a12b76 Bug 797821 - Simplify the call signature for XPC::CreateGlobalObject. r=mrbkap 2012-10-25 17:01:07 +02:00
Bobby Holley
64e6dab665 Bug 797821 - Remove CreateNewGlobal. r=mrbkap
It doesn't do anything useful at this point.
2012-10-25 17:01:07 +02:00
Bobby Holley
669dc56dfe Bug 797821 - Remove the dependency of XPCWrappedNativeScope instantiation on XPCCallContext and expose the raw constructor. r=mrbkap 2012-10-25 17:01:07 +02:00
Benjamin Peterson
64f17f75f7 Bug 804857 - Start with a small compression buffer. r=njn 2012-10-24 16:15:48 -07:00
Benjamin Peterson
8444e1bdb4 Bug 804857 - Allocate memory in the compression thread and have its clients check for error. r=njn 2012-10-24 16:15:48 -07:00
Benjamin Peterson
04b113155e Bug 804558 - Make JSScript::loadSource GC-safe. r=terrence 2012-10-24 13:51:28 -07:00
Bobby Holley
ededf3d730 Bug 801576 - Android bustage fix. r=me 2012-10-24 14:18:39 +02:00
Bobby Holley
5a6219b643 Bug 801576 - Add tests for the same-origin policy. r=mrbkap 2012-10-24 12:04:19 +02:00
Bobby Holley
f2880fe1d1 Bug 801576 - Forbid cross-origin access to the History object. r=mrbkap 2012-10-24 12:04:18 +02:00
Ryan VanderMeulen
72c7e10300 Merge m-c to inbound. 2012-10-23 22:41:34 -04:00
Ryan VanderMeulen
7d0be33071 Merge the last PGO-green inbound changeset to m-c. 2012-10-23 22:28:33 -04:00
Kannan Vijayan
84f5850fcd Bug 795801 - IC StrictPropertyOp setters in IonMonkey. (r=dvander) 2012-10-23 22:18:11 -04:00
Olli Pettay
c370341643 Bug 780770, nsThread::SetMainThreadObserver, r=bz+bholley 2012-10-24 01:26:36 +03:00
Benjamin Peterson
e50fd62051 No bug: Make constructor explicit. rs=Waldo 2012-10-23 15:37:58 -07:00