Closed Bug 1665612 Opened 4 years ago Closed 4 years ago

Add delazified flag to ScriptStencil

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

in bug 1665387, we'll merge CompilationStencil for delazification into top-level CompilationStencil.
If we do that, the function is represented as "eagerly compiled from the beginning",
and the function isn't relazified, because AllowRelazify flag isn't set.

we need a flag in ScriptStencil, that's set when merging delazification stencil,
and if the flag is set, we should set AllowRelazify flag when instantiation.

actually, we should store runtime MutableScriptFlagsEnum::AllowDelazify into stencil.
https://searchfox.org/mozilla-central/rev/d410917833190ee08a62b38f8f9de65cea1e661b/js/src/vm/JSScript.cpp#1018-1019

Attachment #9176302 - Attachment description: Bug 1665612 - Add ScriptStencil.isDelazified field to record delazification in merged stencil. r?tcampbell! → Bug 1665612 - Add ScriptStencil.allowDelazify field to record MutableScriptFlagsEnum::AllowDelazify in merged stencil. r?tcampbell!
Attachment #9176302 - Attachment description: Bug 1665612 - Add ScriptStencil.allowDelazify field to record MutableScriptFlagsEnum::AllowDelazify in merged stencil. r?tcampbell! → Bug 1665612 - Add ScriptStencil.allowDelazify field to record MutableScriptFlagsEnum::AllowDelazify in stencil XDR. r?tcampbell!
Blocks: 1662274
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/755b9a0117fc
Add ScriptStencil.allowDelazify field to record MutableScriptFlagsEnum::AllowDelazify in stencil XDR. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: