Use the right JIT script when disabling trace ICs (bug 627150, r=billm).

This commit is contained in:
David Anderson 2011-01-19 15:43:47 -08:00
parent 783f963055
commit 3445b6ef78

View File

@ -920,9 +920,9 @@ UpdateTraceHintSingle(Repatcher &repatcher, JSC::CodeLocationJump jump, JSC::Cod
}
static void
DisableTraceHint(VMFrame &f, ic::TraceICInfo &ic)
DisableTraceHint(JITScript *jit, ic::TraceICInfo &ic)
{
Repatcher repatcher(f.jit());
Repatcher repatcher(jit);
UpdateTraceHintSingle(repatcher, ic.traceHint, ic.jumpTarget);
if (ic.hasSlowTraceHint)
@ -1021,7 +1021,7 @@ RunTracer(VMFrame &f)
#if JS_MONOIC
ic.loopCounterStart = *loopCounter;
if (blacklist)
DisableTraceHint(f, ic);
DisableTraceHint(entryFrame->jit(), ic);
#endif
// Even though ExecuteTree() bypasses the interpreter, it should propagate