diff options
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index 7b902ad67..5609dbb0e 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -1869,6 +1869,15 @@ void BinaryInstWriter::visitRefIs(RefIs* curr) { case RefIsNull: o << int8_t(BinaryConsts::RefIsNull); break; + case RefIsFunc: + o << int8_t(BinaryConsts::GCPrefix) << int8_t(BinaryConsts::RefIsFunc); + break; + case RefIsData: + o << int8_t(BinaryConsts::GCPrefix) << int8_t(BinaryConsts::RefIsData); + break; + case RefIsI31: + o << int8_t(BinaryConsts::GCPrefix) << int8_t(BinaryConsts::RefIsI31); + break; default: WASM_UNREACHABLE("unimplemented ref.is_*"); } |