Bug 475334 - Don't trigger debugger hooks until frame initialization is complete. r=mrbkap a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256422 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2c1b3bf142
commit
efc072e676
@ -4768,16 +4768,6 @@ interrupt:
|
||||
newifp->frame.regs = NULL;
|
||||
newifp->frame.spbase = NULL;
|
||||
|
||||
/* Call the debugger hook if present. */
|
||||
hook = cx->debugHooks->callHook;
|
||||
if (hook) {
|
||||
newifp->hookData = hook(cx, &newifp->frame, JS_TRUE, 0,
|
||||
cx->debugHooks->callHookData);
|
||||
LOAD_INTERRUPT_HANDLER(cx);
|
||||
} else {
|
||||
newifp->hookData = NULL;
|
||||
}
|
||||
|
||||
/* Scope with a call object parented by callee's parent. */
|
||||
if (JSFUN_HEAVYWEIGHT_TEST(fun->flags) &&
|
||||
!js_GetCallObject(cx, &newifp->frame, parent)) {
|
||||
@ -4800,6 +4790,16 @@ interrupt:
|
||||
newifp->frame.regs = ®s;
|
||||
cx->fp = fp = &newifp->frame;
|
||||
|
||||
/* Call the debugger hook if present. */
|
||||
hook = cx->debugHooks->callHook;
|
||||
if (hook) {
|
||||
newifp->hookData = hook(cx, &newifp->frame, JS_TRUE, 0,
|
||||
cx->debugHooks->callHookData);
|
||||
LOAD_INTERRUPT_HANDLER(cx);
|
||||
} else {
|
||||
newifp->hookData = NULL;
|
||||
}
|
||||
|
||||
inlineCallCount++;
|
||||
JS_RUNTIME_METER(rt, inlineCalls);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user