Closed Bug 1682315 Opened 5 years ago Closed 5 years ago

Consider splitting SourceExtent from ScriptStencil

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Now that the SourceExtent is const for a js::BaseScript, its final value is known during initial parse and the delazification process no longer needs to generate it. This also simplifies what goes in the incremental stencil XDR data.

Store the SourceExtents of a stencil outside the ScriptStencil and instead in
a parallel vector. Subsequent patches will then only generate this for the
initial stencil and not for any delazification stencils. This is possible
since SourceExtent is immutable (and has expected value) after initial parse.

Since the SourceExtent is duplicate data in delazifications, we can avoid
filling in that vector entirely.

Depends on D99683

Assignee: nobody → tcampbell
Priority: -- → P1

Add this field once per CompilationStencil (eg. the initial compile and each
delazification). Later this will allow us avoid generating SourceExtents
altogether while delazifying.

Depends on D99683

Attachment #9193045 - Attachment description: Bug 1682315 - Split the SourceExtent from ScriptStencil → Bug 1682315 - Split the SourceExtent from ScriptStencil. r?arai!
Attachment #9193762 - Attachment description: Bug 1682315 - Add CompilationStencil::functionKey → Bug 1682315 - Add CompilationStencil::functionKey. r?arai!
Attachment #9193046 - Attachment description: Bug 1682315 - Don't generate Stencil SourceExtent for delazification → Bug 1682315 - Don't generate Stencil SourceExtent for delazification. r?arai!
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a53d27a539a9 Split the SourceExtent from ScriptStencil. r=arai https://hg.mozilla.org/integration/autoland/rev/68b34f80063c Add CompilationStencil::functionKey. r=arai https://hg.mozilla.org/integration/autoland/rev/8cb6581e6784 Don't generate Stencil SourceExtent for delazification. r=arai
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: