Closed Bug 1617016 Opened 4 years ago Closed 4 years ago

Enhance LazyScriptCreationData to store script flags

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mgaudet, Unassigned)

References

Details

Today's LazyScriptCreationData::create is called before BytecodeEmission, and propagates a number of flags from the associated FunctionBox directly to the created LazyScript.

We should change this so that those flags are instead stored on the LazyScriptCreation data, so that it become independent of the FunctionBox, which will be required to support main thread stencil initialization, and the deferral of the LazyScript allocation to the end of bytecode emission.

I've marked this as dependent on Bug 1617013 to avoid having to write a whole bunch more synchronization code

Priority: -- → P2
See Also: → 1631106

This is completed as a side-effect of other work.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.