Bug 261640 - [Wasm-GC] Clean up deftype representation
Summary: [Wasm-GC] Clean up deftype representation
Status: NEW
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-09-16 12:36 PDT by Asumu Takikawa
Modified: 2023-09-23 12:37 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-09-16 12:36:44 PDT
Currently `TypeKind` in Wasm includes values that aren't really types, such as `Rec` and `Sub`. This was done as function type definitions `Func` were already represented this way.

As more type definitions are added, this becomes unwieldly for any code that needs to case-dispatch over type kinds. It might be a good idea to separate this out into its own enumeration, such as `DefinedTypeKind` or similar.
Comment 1 Radar WebKit Bug Importer 2023-09-23 12:37:14 PDT
<rdar://problem/115937741>