Closed Bug 1631997 Opened 5 years ago Closed 5 years ago

Compute the NeedsFunctionEnvironmentObjects flag in parser

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(3 files)

The NeedsFunctionEnvironmentObjects script flag can be computed in the parser for both lazy and non-lazy scripts if we use the ParseContext::Scope binding data.

This is no longer needed now that legacy generators are not supported and we
know that a function is async/generator from the start.

This computes the NeedsFunctionEnvironmentObjects flag in Parser by computing
the equivilent to the needsCallObject and needsNamedLambdaEnvironment
conditions using the parse-scope data.

Depends on D71857

Be more consistent with the previous patch and tighten asserts.

Depends on D71858

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a92d7bb22ae Remove the MarkAllBindingsClosedOver mechanism r=arai https://hg.mozilla.org/integration/autoland/rev/4c7821f84bf5 Compute NeedsFunctionEnvironmentObjects flag in Parser r=arai,mgaudet https://hg.mozilla.org/integration/autoland/rev/e6df6f244ce8 Cleanup computation of FunctionHasExtraBodyVarScope r=arai
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: