Bug 264616

Summary: [Wasm-GC] Allow sequential global use in constexprs
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-11-10 12:47:11 PST
In the Wasm GC proposal, restrictions on `global.get` in constant expressions are relaxed. In particular, `global.get` may refer to previous globals when used in global initializers.

In tables, only imported globals can be used. In data and element segments, any valid global is fine.
Comment 1 Radar WebKit Bug Importer 2023-11-17 12:48:16 PST
<rdar://problem/118576806>
Comment 2 Asumu Takikawa 2023-11-22 09:35:35 PST
Pull request: https://github.com/WebKit/WebKit/pull/20825
Comment 3 EWS 2023-11-27 17:56:59 PST
Committed 271183@main (36791c2dd454): <https://commits.webkit.org/271183@main>

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