From bbf40d06a162be8f88a60d1fc4edc3f0015c6c91 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 29 Jan 2021 02:47:52 +0000 Subject: [GC] ref.as_non_null (#3527) This is different than the other RefAs variants in that it is part of the typed functions proposal, and not GC. But it is part of GC prototype 3. Note: This is not useful to us yet as we don't support non-nullable types. --- src/wasm/wasm-stack.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wasm/wasm-stack.cpp') diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index 0ccca0e23..9ac3013b5 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -2090,6 +2090,9 @@ void BinaryInstWriter::visitArrayLen(ArrayLen* curr) { void BinaryInstWriter::visitRefAs(RefAs* curr) { switch (curr->op) { + case RefAsNonNull: + o << int8_t(BinaryConsts::RefAsNonNull); + break; case RefAsFunc: o << int8_t(BinaryConsts::GCPrefix) << int8_t(BinaryConsts::RefAsFunc); break; -- cgit v1.2.3