From 14a286971d203e3caf6f49089fe6ddc16024861f Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 7 May 2019 18:52:57 -0700 Subject: Add except_ref type (#2081) This adds except_ref type, which is a part of the exception handling proposal. --- src/wasm/wasm-validator.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wasm/wasm-validator.cpp') diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index b84105c8d..7467f1f15 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -1053,6 +1053,7 @@ void FunctionValidator::validateMemBytes(uint8_t bytes, shouldBeEqual( bytes, uint8_t(16), curr, "expected v128 operation to touch 16 bytes"); break; + case except_ref: // except_ref cannot be stored in memory case none: WASM_UNREACHABLE(); case unreachable: @@ -1616,6 +1617,7 @@ void FunctionValidator::validateAlignment( case v128: case unreachable: break; + case except_ref: // except_ref cannot be stored in memory case none: WASM_UNREACHABLE(); } -- cgit v1.2.3