Bug 895111 - Allow Ion inline checking of functions with lazy scripts. (r=djvj)

This commit is contained in:
Eric Faust 2013-07-18 14:03:05 -07:00
parent 6b10689c60
commit 15139fee40

View File

@ -259,6 +259,11 @@ IonBuilder::canInlineTarget(JSFunction *target)
return false;
}
if (!target->hasScript()) {
IonSpew(IonSpew_Inlining, "Cannot inline due to lack of Non-Lazy script");
return false;
}
RootedScript inlineScript(cx, target->nonLazyScript());
ExecutionMode executionMode = info().executionMode();
if (!CanIonCompile(inlineScript, executionMode)) {