Bug 261640

Summary: [Wasm-GC] Clean up deftype representation
Product: WebKit Reporter: Asumu Takikawa <asumu>
Component: WebAssemblyAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 247394    

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>