[INFER] Tolerate scripts whose JIT code has already been destroyed when recompiling, bug 646215.

This commit is contained in:
Brian Hackett 2011-03-29 21:20:09 -07:00
parent 643346988b
commit 5b04fe74cd

View File

@ -1936,7 +1936,7 @@ TypeCompartment::processPendingRecompiles(JSContext *cx)
for (unsigned i = 0; i < pending->length(); i++) {
JSScript *script = (*pending)[i];
mjit::Recompiler recompiler(cx, script);
if (!recompiler.recompile()) {
if (script->hasJITCode() && !recompiler.recompile()) {
pendingNukeTypes = true;
js_delete< Vector<JSScript*> >(pending);
return nukeTypes(cx);