Bug 251039 - [Wasm-GC] Add extern.internalize/externalize
Summary: [Wasm-GC] Add extern.internalize/externalize
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 247394
  Show dependency treegraph
 
Reported: 2023-01-23 14:15 PST by Asumu Takikawa
Modified: 2023-03-29 11:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Asumu Takikawa 2023-01-23 14:15:48 PST
The extern.internalize/externalize instructions are used to explicitly convert between the externref type and values in the anyref hierarchy. https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#external-conversion

Currently this isn't implemented, so no anyref values can be exported externally. The conversions done by these instructions will also be implicitly used at the Wasm-JS boundary, whenever a conversion is needed by the JS API (e.g., for function calls between the languages).
Comment 1 Radar WebKit Bug Importer 2023-01-30 14:16:17 PST
<rdar://problem/104836882>
Comment 2 Asumu Takikawa 2023-03-17 14:58:45 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11666
Comment 3 EWS 2023-03-29 11:24:36 PDT
Committed 262282@main (e537d9e945bc): <https://commits.webkit.org/262282@main>

Reviewed commits have been landed. Closing PR #11666 and removing active labels.