Bug 247399

Summary: [Wasm-GC] Implement cast operations
Product: WebKit Reporter: Asumu Takikawa <asumu>
Component: WebAssemblyAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 247394    

Description Asumu Takikawa 2022-11-02 18:17:52 PDT
The Wasm GC proposal has several cast operations that need to be implemented: https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#casts

Of these, `ref.test` and `ref.cast` in particular require us to add more type information to representations of datatypes such as functions, structs, and arrays to enable casting to concrete types.
Comment 1 Radar WebKit Bug Importer 2022-11-09 17:18:20 PST
<rdar://problem/102168772>
Comment 2 Asumu Takikawa 2023-01-31 14:10:53 PST
Pull request: https://github.com/WebKit/WebKit/pull/9406
Comment 3 EWS 2023-03-09 09:25:52 PST
Committed 261445@main (0e2cbf8c3d8e): <https://commits.webkit.org/261445@main>

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