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
Родитель 8b91e29a13
Коммит 034b078c22
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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