Bug 254696

Summary: [Wasm-GC] Add support for new constant expressions
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 2023-03-29 14:59:57 PDT
The Wasm GC proposal adds several new instructions that are constant expressions and can appear in global initializers (https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#constant-expressions).

The instructions are i31, struct, and array allocation, and extern.externalize/internalize.

The proposal also generalizes global.get use in constant expressions.

It would probably make sense to implement this along with extended const expressions: https://bugs.webkit.org/show_bug.cgi?id=252483
Comment 1 Radar WebKit Bug Importer 2023-04-05 15:00:18 PDT
<rdar://problem/107680283>
Comment 2 Asumu Takikawa 2023-08-30 09:47:29 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17230
Comment 3 EWS 2023-10-18 12:59:29 PDT
Committed 269484@main (2b9318e65c51): <https://commits.webkit.org/269484@main>

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