Skip to content
Commit b42b1a62 authored by Robin Templeton's avatar Robin Templeton
Browse files

reftypes: func.ref, call_ref, return_call_ref

* module/wasm/wat.scm (parse-wat): Add support for ref.func, call_ref
and return_call_ref instructions.
(parse-wat) <parse-heap-type>: New procedure.
(parse-wat) <parse-ref-type, parse-val-type>: Use it. Allow both
nullable and non-nullable reftypes.
(parse-wat) <parse-params>: Allow reftypes as parameter types.
(parse-wat) <parse-type>: Fix call to parse-func-sig.
* module/wasm/resolve.scm (resolve-wasm): Use resolve-type to obtain a
typeidx for call_ref and return_call_ref operands.
* examples/hof.gwat: Add example program from function-references
proposal.
parent d327796a
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment