WebAssembly / gc

Branch of the spec repo scoped to discussion of GC integration in WebAssembly
https://webassembly.github.io/gc/
Other
997 stars 72 forks source link

Validation: description of validating the `call_indirect`, `call_ref`, and `return_call_ref` instructions #457

Closed q82419 closed 1 year ago

q82419 commented 1 year ago

For applying the GC proposal, the C.types in the validation context becomes the defined types.

As the description in struct.new x for example:

For the instructions which checking the types in C.types for function types, maybe have to modify to the similar description? Take the call_ref x for example:

Maybe should be modified to:

Thanks.

rossberg commented 1 year ago

Indeed, thanks! And I found a few more inconsistencies around the typing of functions, since that changed from functype to a deftype that expands to a functype. Please see #458 for a fix.

q82419 commented 1 year ago

Close #458.