RESOLVED FIXED247454
Reduce aliasing of Wasm::Type type index field
https://bugs.webkit.org/show_bug.cgi?id=247454
Summary Reduce aliasing of Wasm::Type type index field
David Degazio
Reported 2022-11-03 12:58:47 PDT
The Wasm::Type data structure generated in JavaScriptCore/wasm/generateWasmOpsHeader.py contains a TypeIndex field, which is currently used to store any of the following: - TypeDefinition::invalidIndex, for simple/primitive types - A TypeKind, specifically Funcref or Externref, used to implement those types when typed function references are enabled - A pointer to a TypeDefinition, for compound types like functions or structs We currently lose 7/16 bytes of Wasm::Type to padding, so it'd be nice to use some of that space (or maybe refactor Wasm::Type in general) to separate these values out into other fields or a union type so we aren't reinterpreting this uintptr_t all the time.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-11-03 12:59:00 PDT
Sergey Rubanov
Comment 2 2026-07-16 04:07:21 PDT
EWS
Comment 3 2026-07-22 18:53:05 PDT
Committed 317748@main (f66c3804ee6c): <https://commits.webkit.org/317748@main> Reviewed commits have been landed. Closing PR #69545 and removing active labels.
Sergey Rubanov
Comment 4 2026-07-29 13:45:07 PDT
*** Bug 233444 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.