Closed
Bug 1665387
Opened 5 years ago
Closed 5 years ago
Support merging delazification CompilationStencil into top-level CompilationStencil
Categories
(Core :: JavaScript Engine, task, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: arai, Unassigned)
References
Details
Attachments
(1 obsolete file)
incremental encoding + decoding will be the following steps:
- encode stencil for top-level
- encode stencils for delazification
- linearize 1+2 just by concatenation, with number of delazifications
- decode stencil for top-level
- decode stencils for delazification
- merge stencils for delazification into top-level
- instantiate the merged top-level stencil
Step 6 requires merging function CompilationStencil into top-level script CompilationStencil.
Comment 1•5 years ago
|
||
The merge process probably follows this part of the instantiate code: https://searchfox.org/mozilla-central/rev/30e70f2fe80c97bfbfcd975e68538cefd7f58b2a/js/src/frontend/Stencil.cpp#576-582,588-590,594
That includes:
- Replacing the
ScriptStencil::gcThingslist while updating the indices of functions, scopes, etc - Attach
ImmutableScriptData - For inner-functions of the delazified function:
- Updating
ScriptStencil::isSingletonFunctionflag - Updating
ScriptStencil::functionAtom - Updating
HAS_INFERRED_NAME,HAS_GUESSED_ATOMfunction flags - Updating
ScriptStencil::lazyFunctionEnclosingScopeIndex_ - Updating
ScriptStencil::scriptStencil.memberInitializers - Updating
TreatAsRunOnceimmutableFlag
- Updating
| Reporter | ||
Updated•5 years ago
|
Assignee: nobody → arai.unmht
Severity: -- → N/A
Status: NEW → ASSIGNED
Priority: -- → P1
| Reporter | ||
Comment 2•5 years ago
|
||
Depends on D90573
Updated•5 years ago
|
Attachment #9176303 -
Attachment is obsolete: true
| Reporter | ||
Comment 3•5 years ago
|
||
latest patch in bug 1662274 doesn't requrie merging
Assignee: arai.unmht → nobody
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•