mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895111 - Allow Ion inline checking of functions with lazy scripts. (r=djvj)
This commit is contained in:
parent
6b10689c60
commit
15139fee40
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user