Closed Bug 1638670 Opened 5 years ago Closed 5 years ago

Combine ScriptStencil / ScriptStencilBase / BCEScriptStencil

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(3 files)

After Bug 1638470, we can combine ScriptStencil and ScriptStencilBase. The split was introduced to complete Bug 1618636, but with the virtual methods gone it isn't necessary.

Also remove BCEScriptStencil

Assignee: nobody → tcampbell
Summary: Combine ScriptStencil and ScriptStencilBase → Combine ScriptStencil / ScriptStencilBase / BCEScriptStencil
Priority: P3 → P1

The BCE is no longer needed to instantiate a Stencil, so we can directly use
the ScriptStencil type. Add an intoStencil method to the BCE to do the
setup. This replaces the old BCEScriptStencil::init method.

These were originally split due to ScriptStencil using virtual methods. Those
methods no longer exist so we can simplify this.

Depends on D76023

Behaviour is the same, but we move it closer to the definition of
JSScript::fullyInitFromStencil which is still directly used by the
delazification case.

Depends on D76024

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ab68e0e1e79 Replace BCEScriptStencil with ScriptStencil. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/b6bd6cb99d28 Combine ScriptStencil with ScriptStencilBase. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/60c81cfd3a60 Move ScriptStencil::intoScript to JSScript::fromStencil. r=mgaudet
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: