Closed Bug 1701305 Opened 3 years ago Closed 3 years ago

Extend the JS::Stencil API

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

We need additional support for char16_t overloads, off-thread parsing, and module parsing.

Note that starting the off-thread compile simply uses the existing
mechanisms. We only need a special "finish" function to avoid automatic
instantiation.

Depends on D109956

While this API also parses to a Stencil, care must be taken by callers since
parsing JavaScript text as a module vs global script as different semantics
(as defined in ECMAScript spec).

Depends on D109956

Attachment #9211875 - Attachment description: WIP: Bug 1701305 - Add char16_t overload for JS::Stencil API → Bug 1701305 - Add char16_t overload for JS::Stencil API. r?arai
Attachment #9211906 - Attachment description: WIP: Bug 1701305 - Add ES-module support to JS::Stencil API → Bug 1701305 - Add ES-module support to JS::Stencil API. r?arai!
Attachment #9211877 - Attachment description: WIP: Bug 1701305 - Add off-thread compile API for JS::Stencil → Bug 1701305 - Add off-thread compile API for JS::Stencil. r?arai!

This doesn't have a direct consumer yet, but will eventually be used for dom::ScriptLoader to directly work with Stencils.

Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d969fb9e796f
Add char16_t overload for JS::Stencil API. r=arai
https://hg.mozilla.org/integration/autoland/rev/b2c76d852496
Add ES-module support to JS::Stencil API. r=arai
https://hg.mozilla.org/integration/autoland/rev/f2d12e27d143
Add off-thread compile API for JS::Stencil. r=arai
See Also: → 1691612
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: