diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-05-03 18:08:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 01:08:09 +0000 |
commit | 60e602896e82e988e4fcbfac74aa9639b4ac8814 (patch) | |
tree | 7f6ccb1b148235fcfd47212f9d3732e8429ecb26 /src/wasm/wasm-binary.cpp | |
parent | 737f65a593226119d085e34393592e7462f60cba (diff) | |
download | binaryen-60e602896e82e988e4fcbfac74aa9639b4ac8814.tar.gz binaryen-60e602896e82e988e4fcbfac74aa9639b4ac8814.tar.bz2 binaryen-60e602896e82e988e4fcbfac74aa9639b4ac8814.zip |
Remove externref (#4633)
Remove `Type::externref` and `HeapType::ext` and replace them with uses of
anyref and any, respectively, now that we have unified these types in the GC
proposal. For backwards compatibility, continue to parse `extern` and
`externref` and maintain their relevant C API functions.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index b21ab1209..9dcdbb73d 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -1304,9 +1304,6 @@ void WasmBinaryWriter::writeType(Type type) { case Type::funcref: ret = BinaryConsts::EncodedType::funcref; break; - case Type::externref: - ret = BinaryConsts::EncodedType::externref; - break; case Type::anyref: ret = BinaryConsts::EncodedType::anyref; break; @@ -1336,9 +1333,6 @@ void WasmBinaryWriter::writeHeapType(HeapType type) { case HeapType::func: ret = BinaryConsts::EncodedHeapType::func; break; - case HeapType::ext: - ret = BinaryConsts::EncodedHeapType::extern_; - break; case HeapType::any: ret = BinaryConsts::EncodedHeapType::any; break; @@ -1687,9 +1681,6 @@ bool WasmBinaryBuilder::getBasicType(int32_t code, Type& out) { case BinaryConsts::EncodedType::funcref: out = Type::funcref; return true; - case BinaryConsts::EncodedType::externref: - out = Type::externref; - return true; case BinaryConsts::EncodedType::anyref: out = Type::anyref; return true; @@ -1712,9 +1703,6 @@ bool WasmBinaryBuilder::getBasicHeapType(int64_t code, HeapType& out) { case BinaryConsts::EncodedHeapType::func: out = HeapType::func; return true; - case BinaryConsts::EncodedHeapType::extern_: - out = HeapType::ext; - return true; case BinaryConsts::EncodedHeapType::any: out = HeapType::any; return true; |