mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.
This commit is contained in:
parent
6633322957
commit
07cd213071
28 changed files with 69 additions and 58 deletions
|
|
@ -466,7 +466,8 @@ IonBuilder::canInlineTarget(JSFunction* target, CallInfo& callInfo)
|
|||
// Allow constructing lazy scripts when performing the definite properties
|
||||
// analysis, as baseline has not been used to warm the caller up yet.
|
||||
if (target->isInterpreted() && info().analysisMode() == Analysis_DefiniteProperties) {
|
||||
RootedScript script(analysisContext, target->getOrCreateScript(analysisContext));
|
||||
RootedFunction fun(analysisContext, target);
|
||||
RootedScript script(analysisContext, JSFunction::getOrCreateScript(analysisContext, fun));
|
||||
if (!script)
|
||||
return InliningDecision_Error;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue