Bobby Holley
41730ae96e
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-08-27 15:21:39 -07:00
Bobby Holley
85a2772c84
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-08-27 15:21:39 -07:00
Bobby Holley
9dbe8fc395
Bug 899367 - Have nsGlobalWindow go through nsJSContext to access the outer. r=mccr8
2013-08-27 15:21:39 -07:00
Bobby Holley
6038ed46d7
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-08-27 15:21:38 -07:00
Bobby Holley
b4206b313d
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-08-27 15:21:37 -07:00
Bobby Holley
4bc74a5aec
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-08-27 15:21:37 -07:00
Boris Zbarsky
ed572afc24
Bug 908576 part 3. Get rid of PrototypeIDMap structs. r=smaug
2013-08-23 22:42:41 -04:00
Brian Hackett
9c4a523e22
Bug 907777 - Add preference for off thread parsing, coalesce with preference for off thread Ion compilation, r=billm.
2013-08-22 07:22:33 -06:00
Ms2ger
e157e4f4d5
Merge PGO-green changeset from inbound to m-c.
2013-08-22 10:31:44 +02:00
Ms2ger
f3a1ead507
Bug 906503 - Remove nsIExceptionProvider; r=bholley
...
It is replaced by a direct special case in the caller.
2013-08-22 08:56:02 +02:00
Olli Pettay
f82aab96d7
Bug 906269, don't start a GC cycle so likely while we're in middle of a CC cycle, r=mccr8
2013-08-22 00:02:12 +03:00
Till Schneidereit
429fcdee08
Bug 907201 - Enable activating TI and IonMonkey for chrome scripts via about:config. r=jandem
2013-08-20 11:26:44 +02:00
Bobby Holley
16665a5ae8
Bug 901106 - Eliminate the nsJSRuntime namespace. r=mrbkap
2013-08-19 16:24:29 -07:00
Bobby Holley
88ee3e6f7b
Bug 901106 - Make nsJSRuntime initialization infallible and do it implicitly in the nsJSContext constructor. r=mrbkap
...
We also move the runtime out of the namespace, which requires some updates.
2013-08-19 16:24:29 -07:00
Bobby Holley
10e5a105de
Bug 901106 - Get rid of vestigial nsJSRuntime instance and make it a namespace. r=mrbkap
...
We'll rename the namespace shortly.
2013-08-19 16:24:29 -07:00
Bobby Holley
cd2added99
Bug 901106 - Make sure sure the nsDOMScriptObjectFactory gets instantiated.
...
This used to happen implicitly when we created the first nsJSContext, but that
goes away in the next patch. Without this, we get a couple of odd exception-
related failures in the IPC indexedDB tests.
2013-08-19 16:24:28 -07:00
Bobby Holley
b1ce0211c3
Bug 901106 - Remove nsIScriptRuntime. r=mrbkap
...
All this stuff is now for nsGlobalWindow's use only.
2013-08-19 16:24:28 -07:00
Bobby Holley
554c3197c3
Bug 901106 - Inline and remove nsIScriptContext::{Serialize,Deserialize}. r=smaug
2013-08-19 16:24:27 -07:00
Tom Schuster
ba4a5bd7c1
Bug 884410 - Remove JS_ValueToECMAInt32 and replace it with JS::ToInt32. r=terrence
2013-08-15 17:41:51 -04:00
Ehsan Akhgari
a3689458ae
Backed out changeset 3d9664b78ca7 (bug 884410) because of build bustage on a CLOSED TREE
2013-08-15 18:20:00 -04:00
Tom Schuster
1ec5422e09
Bug 884410 - Remove JS_ValueToECMAInt32 and replace it with JS::ToInt32. r=terrence
2013-08-15 17:41:51 -04:00
Ehsan Akhgari
6c2dd7f365
Bug 905353 - Minimize the #includes in dom/base; r=jst
2013-08-15 14:17:48 -04:00
Jan de Mooij
d1cdc13210
Bug 905300 - Remove dead code in SpiderMonkey. r=bhackett
2013-08-15 13:45:30 +02:00
Bobby Holley
75db351b33
Bug 903212 - Remove explicit compartment GC machinery. r=smaug
2013-08-14 14:00:03 -07:00
Bobby Holley
da508a799d
Bug 903212 - Remove nsIXPCScriptNotify machinery. r=mrbkap
2013-08-14 14:00:03 -07:00
Bobby Holley
3640d355fe
Bug 903212 - Remove ScriptEvaluated, and simplify callers. r=mrbkap
2013-08-14 14:00:03 -07:00
Bobby Holley
37118e3b3b
Bug 903212 - Remove activity tracking from nsJSContext. r=smaug
...
This only has an impact when we enable explict compartmental GCs, which have
been preffed off for a while.
2013-08-14 14:00:02 -07:00
Bobby Holley
2059b8d584
Bug 901364 - Remove a bunch of now-unused modal state tracking machinery. r=mrbkap
2013-08-12 12:54:51 -07:00
Bobby Holley
99e1b4f2b7
Bug 901364 - Make operation callbacks runtime-wide. r=mrbkap
2013-08-12 12:54:50 -07:00
Bobby Holley
8add0bb5ff
Bug 901364 - Switch to the XPConnect operation callback for DOM windows. r=mrbkap
2013-08-12 12:54:49 -07:00
Bobby Holley
cf08bb2b5d
Bug 901364 - Hoist slow script prompt machinery into nsGlobalWindow. r=mrbkap
2013-08-12 12:54:49 -07:00
Nicholas Nethercote
5cbf3bd505
Bug 898263 (part 4) - Move |JSTrapStatus| and related function typedefs out of jsprvtd.h. r=jorendorff.
2013-08-08 21:30:15 -07:00
Bobby Holley
b77145ffd7
Bug 901362 - Refactor nsJSUtils::EvaluateString to take an EvaluateOptions structure. r=gabor
2013-08-08 16:51:35 -07:00
Bobby Holley
d1f97953e6
Bug 901162 - Inline ExecuteScript in the one caller. r=bz
2013-08-08 16:51:34 -07:00
Bobby Holley
538f5349b0
Bug 901162 - Inline CompileScript into the one caller. r=bz
2013-08-08 16:51:34 -07:00
Bobby Holley
903368deaa
Bug 901162 - Hoist EvaluateString into nsJSUtils. r=bz
2013-08-08 16:51:34 -07:00
Bobby Holley
715cfa8df1
Bug 901162 - Remove unused mExecuteDepth machinery. r=bz
2013-08-08 16:51:34 -07:00
Nicholas Nethercote
f7d6f07d24
Bug 898914 (part 1) - Remove JSBool.
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
f30b759645
Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
2013-08-06 23:59:54 -07:00
Nicholas Nethercote
966f6b5ff2
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
2013-08-02 00:41:57 -07:00
Ms2ger
29d6d162dc
Merge m-c to inbound.
2013-08-02 11:07:57 +02:00
Ms2ger
f41616eac4
Bug 897945 - Use an XPCOM string for nsContentUtils::ReportToConsole's category argument; r=bholley
2013-08-02 09:09:11 +02:00
Mike Hommey
0dc9c0ef85
Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8
2013-08-02 10:29:05 +09:00
Bill McCloskey
48c66f5f38
Bug 899812 - Error reporters should consistently report errors to stderr (r=bholley)
2013-07-31 17:04:49 -07:00
Bobby Holley
0df174a07e
Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
...
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Bobby Holley
0d55dae85a
Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke
2013-07-29 16:45:26 -07:00
Bobby Holley
69e3bb530c
Bug 899245 - Rename js::GetDefaultGlobalForContext to js::DefaultObjectForContextOrNull. r=luke
...
This is more correct, since the object very often is not a global.
2013-07-29 16:45:25 -07:00
Olli Pettay
cec7749fcc
Bug 897433 - Telemetry for SnowWhite and more async SnowWhite freeing (patch v4), r=mccr8
2013-07-27 13:48:45 +03:00
Ryan VanderMeulen
3f0186df75
Backed out changeset 300f5b7d72e1 (bug 897433) for intermittent Linux dromaeo crashes.
2013-07-25 21:18:20 -04:00
Olli Pettay
de8242a9d4
Bug 897433, Telemetry for SnowWhite and more async SnowWhite freeing, r=mccr8
2013-07-25 22:56:20 +03:00