diff --git a/mozilla/js/src/jsinterp.c b/mozilla/js/src/jsinterp.c index 7506d3762d9..3c0109fc950 100644 --- a/mozilla/js/src/jsinterp.c +++ b/mozilla/js/src/jsinterp.c @@ -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);