Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 928562 - Eagerly baseline compile inlined scripts during definite…
Browse files Browse the repository at this point in the history
… properties analysis, r=jandem.
  • Loading branch information
bhackett1024 committed Oct 23, 2013
1 parent 5d5040e commit 9308abf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/src/jit/IonBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,13 @@ IonBuilder::canInlineTarget(JSFunction *target, bool constructing)
if (target->isInterpretedLazy() && info().executionMode() == DefinitePropertiesAnalysis) {
if (!target->getOrCreateScript(context()))
return false;

RootedScript script(context(), target->nonLazyScript());
if (!script->hasBaselineScript()) {
MethodStatus status = BaselineCompile(context(), script);
if (status != Method_Compiled)
return false;
}
}

if (!target->hasScript()) {
Expand Down

0 comments on commit 9308abf

Please sign in to comment.