Bug 1172545 - Recover from OOM if Ion compilation is skipped due to not being able to allocate a 'this' object, r=jandem.

This commit is contained in:
Brian Hackett 2015-06-11 08:38:59 -07:00
parent 0ab322a7fe
commit 0c57a2bf4a

View File

@ -2429,8 +2429,10 @@ jit::CanEnter(JSContext* cx, RunState& state)
return Method_CantCompile;
}
if (!state.maybeCreateThisForConstructor(cx))
if (!state.maybeCreateThisForConstructor(cx)) {
cx->recoverFromOutOfMemory();
return Method_Skipped;
}
}
// If --ion-eager is used, compile with Baseline first, so that we