Bug 945437 - Fix Ion usecount check in Compile function. r=h4writer

This commit is contained in:
Jan de Mooij 2013-12-03 10:38:26 +01:00
parent c7538c0c16
commit d2790cee34

View File

@ -1872,7 +1872,7 @@ Compile(JSContext *cx, HandleScript script, BaselineFrame *osrFrame, jsbytecode
if (executionMode == SequentialExecution) {
// Use getUseCount instead of incUseCount to avoid bumping the
// use count twice.
if (script->getUseCount() < js_IonOptions.usesBeforeCompile)
if (script->getUseCount() < UsesBeforeIonRecompile(script, osrPc ? osrPc : script->code))
return Method_Skipped;
}