Closed Bug 1626825 Opened 4 years ago Closed 4 years ago

Cleanup arguments-objects flags in frontend

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(4 files)

With the introduction of resetArgsUsageAnalysis() we can deprecate all the old calls to BaseScript::setArgumentsHasVarBinding. As well, we can use SharedContext::immutableFlags to hold the frontend's flags to track this stuff.

This replaces the dedicated bools in FunctionBox with the associated
ImmutableFlags. The results in AlwaysNeedsArgsObj now being initialized
consistently for lazy scripts as well.

Instead, use resetArgsUsageAnalysis(). We no longer set the arguments flags
for lazy scripts since the mutable flags are imprecise until the BCE is
complete.

Depends on D69309

Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1b94e00648f2
Use immutableFlags for ArgsObj flags in funbox. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/569f0a43c304
Remove BaseScript::setArgumentsHasVarBinding. r=mgaudet

Replace with the standard flag accessor: needsArgsAnalysis().

Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7439b0f68f49
Remove JSScript::analyzedArgsUsage. r=anba
https://hg.mozilla.org/integration/autoland/rev/61c3c9168b93
Remove stale comments about args-analysis. r=anba
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: