Closed Bug 1794002 Opened 2 years ago Closed 1 year ago

Implement external conversion instructions in baseline

Categories

(Core :: JavaScript: WebAssembly, task, P2)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: yury, Assigned: rhunt)

References

Details

Attachments

(1 file)

See https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#external-conversion

  • extern.internalize (opcode 0xfb70) - converts an external value into the internal representation
  • extern.externalize (opcode 0xfb71) - converts an internal value into the external representation

For SpiderMonkey, currently, it will be a no-op, just validation and parsing logic needs to be updated.

I have a patch that does this.

Assignee: nobody → rhunt
Severity: -- → N/A
Priority: -- → P2

These operations are no-ops for us, because our externref and anyref values
will share the same representation for the forseeable future.

Depends on D159791

Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/integration/autoland/rev/c3e0a0a35b6d
wasm: Add extern.internalize and extern.externalize instructions. r=jseward
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: