Bug 264616 - [Wasm-GC] Allow sequential global use in constexprs
Summary: [Wasm-GC] Allow sequential global use in constexprs
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-11-10 12:47 PST by Asumu Takikawa
Modified: 2023-11-27 17:57 PST (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-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.