Bug 848849 - Reset script use count when type information changes. r=bhackett

This commit is contained in:
Jan de Mooij 2013-03-13 23:06:43 +01:00
parent 10a8f6f65b
commit ed8edaffaf

View File

@ -2899,6 +2899,9 @@ TypeCompartment::addPendingRecompile(JSContext *cx, RawScript script, jsbytecode
# ifdef JS_ION
CancelOffThreadIonCompile(cx->compartment, script);
// Let the script warm up again before attempting another compile.
script->resetUseCount();
if (script->hasIonScript())
addPendingRecompile(cx, script->ionScript()->recompileInfo());