Closed Bug 1635635 Opened 5 years ago Closed 5 years ago

Use ScriptThingsVector for FunctionCreationData

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(2 files)

In order to remove the FunctionCreationData, we should first move the lazy script data into the ScriptThingsVector type. This make this compatible with ScriptStencil in the future.

This patch is just code motion for the next one.

Depends on D73883

Use ScriptThingVariant to represent closed-over-bindings and inner-functions
for lazy functions. Inline the body of BaseScript::CreateLazy as well so we
can use EmitScriptThingsVector to init the gcthings. We take care to keep
setting the enclosingScript link.

Depends on D74035

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f6afc1e17a01 Move definition of FunctionCreationData. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/2e63b0061d2e Use ScriptThingsVector for FunctionCreationData. r=mgaudet
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: