Support structref and other heap types in ToWebAssembly value
Categories
(Core :: JavaScript: WebAssembly, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: bashorov, Assigned: rhunt)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files)
Checked in the recent nightly build of Firefox 111.0a1 (2023-01-24).
It works fine in Chrom Canary.
Steps to reproduce:
Open index.html from the attachment
Actual results:
TypeError: cannot pass v128 to or from JS
Expected results:
No errors
Comment 2•3 years ago
|
||
The severity field is not set for this bug.
:rhunt, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
It looks like this example uses imports with structref
in it. We don't support that in ToWasmValue/ToJSValue yet.
Assignee | ||
Comment 4•3 years ago
|
||
The minimal JS-API spec for the GC proposal allows these types to be used on the
JS-Wasm boundary. So far we have not supported this. This commit updates these
methods so that the types work. This commit does not add support to our JIT
fast paths for exit/entry, so any use of these types will be stuck in the
interpreter entry/exit.
Assignee | ||
Comment 5•3 years ago
|
||
The attached patch fixes the error and gets the DOMMonster benchmark running in baseline. For Ion, we have a codegen issue that is causing a crash.
Comment 7•3 years ago
|
||
bugherder |
Assignee | ||
Updated•3 years ago
|
Description
•