Open Bug 1997621 Opened 4 months ago Updated 2 months ago

ESM: Add initial support for wasm module compilation

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: dminor, Assigned: dminor)

References

(Blocks 2 open bugs)

Details

Attachments

(4 obsolete files)

Once we support fetching wasm modules, we can look at compiling them. We may end up splitting this bug into smaller pieces as well.

Severity: -- → N/A
Summary: Add initial support for wasm module compilation → ESM: Add initial support for wasm module compilation
Priority: -- → P3
Assignee: nobody → dminor
Blocks: 2007696

The existing worklet test triggers a syntax error because we don't yet
support source phase imports. This adds a direct import so we can test
worklet loading of wasm modules. This test is expected to fail because
we don't support compiling wasm modules yet, but is sufficient to test
the module loading code.

WASM modules are raw bytes, we should add a different DataType so
we don't attempt to decode them as UTF-8 or UTF-16.

Attachment #9536193 - Attachment description: Bug 1997621 - Add LoadedScript::DateType::eBytesSource; r=arai! → Bug 1997621 - Add LoadedScript::DateType::eWasmBytes; r=arai!
Attachment #9536194 - Attachment description: Bug 1997621 - Support eBytesSource in script loader; r=arai! → Bug 1997621 - Support eWasmBytes in script loader; r=arai!

Comment on attachment 9536192 [details]
Bug 1997621 - Add web-platform test for direct import of wasm modules in worklets; r=allstarschh!

Revision D278168 was moved to bug 2007672. Setting attachment 9536192 [details] to obsolete.

Attachment #9536192 - Attachment is obsolete: true

Comment on attachment 9536193 [details]
Bug 1997621 - Add LoadedScript::DateType::eWasmBytes; r=arai!

Revision D278169 was moved to bug 2007672. Setting attachment 9536193 [details] to obsolete.

Attachment #9536193 - Attachment is obsolete: true

Comment on attachment 9536194 [details]
Bug 1997621 - Support eWasmBytes in script loader; r=arai!

Revision D278170 was moved to bug 2007672. Setting attachment 9536194 [details] to obsolete.

Attachment #9536194 - Attachment is obsolete: true

Comment on attachment 9536195 [details]
Bug 1997621 - Compile wasm modules as bytes; r=allstarschh!

Revision D278171 was moved to bug 2007672. Setting attachment 9536195 [details] to obsolete.

Attachment #9536195 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: