[WASM-Function-References] Extend wasm type with type index
Created attachment 421394 [details] Patch
Comment on attachment 421394 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=421394&action=review r=me. > Source/JavaScriptCore/wasm/generateWasmOpsHeader.py:219 > + bool operator==(const Type& other) const Seems like it'd be reasonable to have an implicit TypeKind constructor so you can just use the enum literals as Types.
There are two reason why we may want not to introduce any user-defined constructors: 1) Now Wasm::Type is a POD type and it is a good property to have, any user-defined constructor breaks this. 2) In the near future not all TypeKind values can represent Wasm::Type, for example - TypeKind::Reference can't represent Type without specifying type_idx wdyt?
<rdar://problem/74978305>
Committed r273813: <https://commits.webkit.org/r273813> All reviewed patches have been landed. Closing bug and clearing flags on attachment 421394 [details].