summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2019-02-25 00:12:19 -0800
committerGitHub <noreply@github.com>2019-02-25 00:12:19 -0800
commit93640e2a4ef8559c412f9860aa8ed1497d756abc (patch)
treee66216d6841668c8c1671450e22db6fbdc531022 /src/common.h
parent8096983bb0b8fa2f0ab3486dad76e9f7c50eb381 (diff)
downloadwabt-93640e2a4ef8559c412f9860aa8ed1497d756abc.tar.gz
wabt-93640e2a4ef8559c412f9860aa8ed1497d756abc.tar.bz2
wabt-93640e2a4ef8559c412f9860aa8ed1497d756abc.zip
Rename anyfunc -> funcref; parse reference types (#1026)
Also: * Add feature limits on using v128 and anyref types (requires --enable-simd and --enable-reference-types respectively). * Separate out ParseValueType (used for params, locals, global types) from ParseRefType (used for table types).
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 37cec3b9..fed9b816 100644
--- a/src/common.h
+++ b/src/common.h
@@ -204,7 +204,7 @@ enum class Type : int32_t {
F32 = -0x03, // 0x7d
F64 = -0x04, // 0x7c
V128 = -0x05, // 0x7b
- Anyfunc = -0x10, // 0x70
+ Funcref = -0x10, // 0x70
Anyref = -0x11, // 0x6f
ExceptRef = -0x18, // 0x68
Func = -0x20, // 0x60
@@ -355,8 +355,8 @@ static WABT_INLINE const char* GetTypeName(Type type) {
return "f64";
case Type::V128:
return "v128";
- case Type::Anyfunc:
- return "anyfunc";
+ case Type::Funcref:
+ return "funcref";
case Type::Func:
return "func";
case Type::ExceptRef: