summaryrefslogtreecommitdiff
path: root/src/tools/wasm-reduce.cpp
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-11 03:04:17 +0200
committerGitHub <noreply@github.com>2020-09-10 18:04:17 -0700
commit192757772adce7568fc1f3f3e733a4263b6392c6 (patch)
tree922fec8709cf9008d239a1fcbce7280e6ab46deb /src/tools/wasm-reduce.cpp
parentcd6f0d908f0e4c68d72fd476a6e0e7cfb7ae8595 (diff)
downloadbinaryen-192757772adce7568fc1f3f3e733a4263b6392c6.tar.gz
binaryen-192757772adce7568fc1f3f3e733a4263b6392c6.tar.bz2
binaryen-192757772adce7568fc1f3f3e733a4263b6392c6.zip
Add anyref feature and type (#3109)
Adds `anyref` type, which is enabled by a new feature `--enable-anyref`. This type is primarily used for testing that passes correctly handle subtype relationships so that the codebase will continue to be prepared for future subtyping. Since `--enable-anyref` is meaningless without also using `--enable-reference-types`, this PR also makes it a validation error to pass only the former (and similarly makes it a validation error to enable exception handling without enabling reference types).
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
-rw-r--r--src/tools/wasm-reduce.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index 1a7c3544d..7410ff91e 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -598,6 +598,7 @@ struct Reducer
case Type::funcref:
case Type::externref:
case Type::exnref:
+ case Type::anyref:
continue; // not implemented yet
case Type::none:
case Type::unreachable:
@@ -623,6 +624,7 @@ struct Reducer
case Type::funcref:
case Type::externref:
case Type::exnref:
+ case Type::anyref:
continue; // not implemented yet
case Type::none:
case Type::unreachable:
@@ -648,6 +650,7 @@ struct Reducer
case Type::funcref:
case Type::externref:
case Type::exnref:
+ case Type::anyref:
continue; // not implemented yet
case Type::none:
case Type::unreachable:
@@ -673,6 +676,7 @@ struct Reducer
case Type::funcref:
case Type::externref:
case Type::exnref:
+ case Type::anyref:
continue; // not implemented yet
case Type::none:
case Type::unreachable:
@@ -684,6 +688,7 @@ struct Reducer
case Type::funcref:
case Type::externref:
case Type::exnref:
+ case Type::anyref:
continue; // not implemented yet
case Type::none:
case Type::unreachable: