summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 1efa24b48..d01502e9b 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -381,7 +381,9 @@ enum EncodedType {
v128 = -0x5, // 0x7b
// elem_type
AnyFunc = -0x10, // 0x70
- // reference type
+ // opaque reference type
+ anyref = -0x11, // 0x6f
+ // exception reference type
exnref = -0x18, // 0x68
// func_type form
Func = -0x20, // 0x60
@@ -406,6 +408,7 @@ extern const char* SignExtFeature;
extern const char* SIMD128Feature;
extern const char* ExceptionHandlingFeature;
extern const char* TailCallFeature;
+extern const char* ReferenceTypesFeature;
enum Subsection {
NameFunction = 1,
@@ -903,6 +906,9 @@ inline S32LEB binaryType(Type type) {
case v128:
ret = BinaryConsts::EncodedType::v128;
break;
+ case anyref:
+ ret = BinaryConsts::EncodedType::anyref;
+ break;
case exnref:
ret = BinaryConsts::EncodedType::exnref;
break;