From 3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 21 Jan 2021 22:09:47 +0000 Subject: [GC] Add dataref type (#3500) This is not 100% of everything, but is enough to get tests passing, which includes full binary and text format support, getting all switches to compile without error, and some additions to InstrumentLocals. --- src/binaryen-c.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/binaryen-c.cpp') diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index f08b5f777..64813436e 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -78,6 +78,8 @@ BinaryenLiteral toBinaryenLiteral(Literal x) { break; case Type::i31ref: WASM_UNREACHABLE("TODO: i31ref"); + case Type::dataref: + WASM_UNREACHABLE("TODO: dataref"); case Type::none: case Type::unreachable: WASM_UNREACHABLE("unexpected type"); @@ -106,6 +108,8 @@ Literal fromBinaryenLiteral(BinaryenLiteral x) { return Literal::makeNull(Type(x.type)); case Type::i31ref: WASM_UNREACHABLE("TODO: i31ref"); + case Type::dataref: + WASM_UNREACHABLE("TODO: dataref"); case Type::none: case Type::unreachable: WASM_UNREACHABLE("unexpected type"); -- cgit v1.2.3