gecko-dev/js/src/methodjit
Jim Blandy cb0ad8b133 Bug 687683: Collect resumption values from onEnterFrame handlers, and respect them. r=jorendorff
This patch makes SpiderMonkey respect resumption values returned by
Debugger onEnterFrame handler functions, as documented.

In Debugger, we change fireEnterFrame to collect a resumption value from
the hook, and change onEnterFrame and slowPathOnEnterFrame to propagate
them out. These now need an 'rval' argument, so that they can return forced
return values and exceptions.

ScriptDebugPrologue now accepts a JSTrapStatus from Debugger::onEnterFrame,
takes care of placing the return value or exception where it belongs, and
returns a JSTrapStatus.

Calls to ScriptDebugPrologue now handle the JSTrapStatus:
- at the head of js::Interpret;
- in the JSOP_NEW/JSOP_CALL/JSOP_FUNCALL/JSOP_FUNAPPLY case;
- in stubs::ScriptDebugPrologue, which JM epilogues call; and
- in the REJOIN_THIS_PROTOTYPE case in js_InternalInterpret (you must add a
  JS_GC call to ic::GetPropNoCache for Debugger-onEnterFrame-resumption-05.js to
  hit this reliably).

We also rearrange the js_InternalThrow JSTrapStatus-handling switch statement to
have an explicit default case that raises a JS_NOT_REACHED assertion, instead of
just omitting JSTRAP_CONTINUE.
2011-12-06 11:40:28 -08:00
..
BaseAssembler.h Merge MC -> JM 2011-12-01 11:51:09 -08:00
BaseCompiler.h Merge MC -> JM 2011-10-19 14:26:08 -07:00
CodeGenIncludes.h
Compiler.cpp Bug 687683: Some random comment fixes I came across. r=jorendorff 2011-12-06 11:40:27 -08:00
Compiler.h Merge MC -> JM 2011-11-26 15:03:20 -08:00
FastArithmetic.cpp Bug 705168 - Followup to remove some references to the tracer in the methodjit r=dvander 2011-11-24 19:38:57 +01:00
FastBuiltins.cpp Merge MC -> JM 2011-11-26 15:03:20 -08:00
FastOps.cpp Merge MC -> JM 2011-11-26 15:03:20 -08:00
FrameEntry.h Bug 684526 - Remove Jsvalify/Valueify (r=waldo) 2011-09-20 11:40:24 -07:00
FrameState-inl.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
FrameState.cpp Sync FrameState entries based on tracker, bug 698100. r=dvander 2011-10-29 18:16:35 -07:00
FrameState.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
ICChecker.h
ICLabels.h Remove shape numbers and Shape::slotSpan, factor Shape getter/setter into BaseShape, bug 684505. 2011-09-28 15:04:55 -07:00
ICRepatcher.h
ImmutableSync.cpp Sync FrameState entries based on tracker, bug 698100. r=dvander 2011-10-29 18:16:35 -07:00
ImmutableSync.h
InlineFrameAssembler.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
InvokeHelpers.cpp Bug 687683: Collect resumption values from onEnterFrame handlers, and respect them. r=jorendorff 2011-12-06 11:40:28 -08:00
Logging.cpp Merge MC -> JM 2011-11-14 09:13:33 -08:00
Logging.h Merge MC -> JM 2011-08-12 07:20:08 -07:00
LoopState.cpp Merge MC -> JM 2011-12-03 10:34:26 -08:00
LoopState.h [INFER] Reapply c2726640029f 3330521cfa4a b68281262e15 (bug 557358), 6a8947bcc821 (bug 684943), 50d4f6fa00ce (bug 683714), f3dd7cf2d0b3 (bug 683999). 2011-09-17 19:14:22 -07:00
MachineRegs.h Bug 693469 - Use mozilla::ArrayLength and mozilla::ArrayEnd in preference to JS_ARRAY_LENGTH whenever possible. r=cjones 2011-10-10 23:00:28 -07:00
MethodJIT-inl.h Bug 705168 - Followup to remove some references to the tracer in the methodjit r=dvander 2011-11-24 19:38:57 +01:00
MethodJIT.cpp Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
MethodJIT.h Bug 687683: Some random comment fixes I came across. r=jorendorff 2011-12-06 11:40:27 -08:00
MonoIC.cpp Merge MC -> JM 2011-11-26 15:03:20 -08:00
MonoIC.h Merge MC -> JM 2011-10-27 14:16:02 -07:00
NunboxAssembler.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
PolyIC.cpp Avoid scratch register collision when comparing an absolute address to an immediate, bug 703047. 2011-11-29 18:41:38 -08:00
PolyIC.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
PunboxAssembler.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
RematInfo.h Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
Retcon.cpp [INFER] Reapply 7db908db3669 (bug 684084) 19ed9da5789d (bug 684824) a250c3cb749a (bug 686178) 820f11a3fdb1 (bug 686179) e678ced82a6a (bug 686418) 300e1f974f55 (bug 669715) 5c131d458c53 (bug 686396) 3a8b5e4a286b (bug 683140). 2011-09-18 07:36:51 -07:00
Retcon.h [INFER] Reapply c2726640029f 3330521cfa4a b68281262e15 (bug 557358), 6a8947bcc821 (bug 684943), 50d4f6fa00ce (bug 683714), f3dd7cf2d0b3 (bug 683999). 2011-09-17 19:14:22 -07:00
StubCalls-inl.h Merge MC -> JM 2011-10-19 14:26:08 -07:00
StubCalls.cpp Bug 687683: Separate ScriptDebugPrologue add ScriptDebugEpilogue from and ScriptPrologue and ScriptEpilogue. r=jorendorff 2011-12-06 11:40:27 -08:00
StubCalls.h Merge MC -> JM 2011-11-14 09:13:33 -08:00
StubCompiler.cpp [INFER] Reapply c2726640029f 3330521cfa4a b68281262e15 (bug 557358), 6a8947bcc821 (bug 684943), 50d4f6fa00ce (bug 683714), f3dd7cf2d0b3 (bug 683999). 2011-09-17 19:14:22 -07:00
StubCompiler.h [INFER] Reapply c2726640029f 3330521cfa4a b68281262e15 (bug 557358), 6a8947bcc821 (bug 684943), 50d4f6fa00ce (bug 683714), f3dd7cf2d0b3 (bug 683999). 2011-09-17 19:14:22 -07:00
TrampolineCompiler.cpp Backout latest JM merge for OSX 10.5 M-oth permaorange (see bug 687257) on a CLOSED TREE 2011-09-17 16:32:43 +01:00
TrampolineCompiler.h
TrampolineMasmX64.asm
TrampolineMingwX64.s Bug 686117 - Port TI assembly changes to mingw-w64 variant [r=dvander, NPOTB, DONTBUILD] 2011-09-14 16:12:15 +02:00
TrampolineSUNWX64.s
TrampolineSUNWX86.s
TrampolineSparc.s Bug 703842 - Avoid R_SPARC_WDISP22 relocation in TrampolineSparc.s. r=bhackett 2011-11-19 09:37:34 +01:00
TypedArrayIC.h