RESOLVED FIXED 239493
[WASM-GC] Introduce rtt types
https://bugs.webkit.org/show_bug.cgi?id=239493
Summary [WASM-GC] Introduce rtt types
Dmitry
Reported 2022-04-19 06:12:27 PDT
Though rtt types currently not actively used they are still required in Wasm GC MVP: https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md. Particularly, they are needed for struct.new* instructions, but struct constructors can avoid rtts usage. Because of all that rtt prototype support should be added in JSC to move forward with struct types.
Attachments
Patch (28.85 KB, patch)
2022-04-19 06:20 PDT, Dmitry
no flags
Patch (29.83 KB, patch)
2022-04-24 22:38 PDT, Dmitry
no flags
Patch (29.83 KB, patch)
2022-04-25 22:06 PDT, Dmitry
no flags
Dmitry
Comment 1 2022-04-19 06:20:27 PDT
EWS Watchlist
Comment 2 2022-04-19 06:21:52 PDT
This patch modifies one of the wasm.json files. Please ensure that any changes in one have been mirrored to the other. You can find the wasm.json files at "Source/JavaScriptCore/wasm/wasm.json" and "JSTests/wasm/wasm.json".
Dmitry
Comment 3 2022-04-24 22:38:57 PDT
Keith Miller
Comment 4 2022-04-25 10:35:28 PDT
Comment on attachment 458242 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=458242&action=review Looks good to me but you have a typo in your error message. > Source/JavaScriptCore/wasm/WasmFunctionParser.h:1052 > + WASM_VALIDATOR_FAIL_IF(typeIndex >= m_info.typeCount(), "rtt.canon index ", typeIndex, " is out of bound"); typo: bound => bounds.
Dmitry
Comment 5 2022-04-25 22:06:53 PDT
Dmitry
Comment 6 2022-04-25 22:07:47 PDT
Thanks for the typo, Keith! It was fixed.
Keith Miller
Comment 7 2022-04-25 22:41:44 PDT
Comment on attachment 458329 [details] Patch r=me. Do you want me to commit queue too?
Radar WebKit Bug Importer
Comment 8 2022-04-26 06:13:14 PDT
EWS
Comment 9 2022-04-27 08:52:55 PDT
Committed r293510 (?): <https://commits.webkit.org/r293510> All reviewed patches have been landed. Closing bug and clearing flags on attachment 458329 [details].
EWS
Comment 10 2022-05-18 06:49:31 PDT
Committed r294395 (250689@main): <https://commits.webkit.org/250689@main> Reviewed commits have been landed. Closing PR #607 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.