Bug 254696 - [Wasm-GC] Add support for new constant expressions
Summary: [Wasm-GC] Add support for new constant expressions
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-03-29 14:59 PDT by Asumu Takikawa
Modified: 2023-10-18 12:59 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-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.