summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-05-03 18:08:09 -0700
committerGitHub <noreply@github.com>2022-05-04 01:08:09 +0000
commit60e602896e82e988e4fcbfac74aa9639b4ac8814 (patch)
tree7f6ccb1b148235fcfd47212f9d3732e8429ecb26 /src/wasm-binary.h
parent737f65a593226119d085e34393592e7462f60cba (diff)
downloadbinaryen-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-binary.h')
-rw-r--r--src/wasm-binary.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index d8225ce0f..62c2f7af2 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -362,10 +362,8 @@ enum EncodedType {
i16 = -0x7, // 0x79
// function reference type
funcref = -0x10, // 0x70
- // opaque host reference type
- externref = -0x11, // 0x6f
- // any reference type
- anyref = -0x12, // 0x6e
+ // top type of references, including host references
+ anyref = -0x11, // 0x6f
// comparable reference type
eqref = -0x13, // 0x6d
// nullable typed function reference type, with parameter
@@ -391,12 +389,11 @@ enum EncodedType {
};
enum EncodedHeapType {
- func = -0x10, // 0x70
- extern_ = -0x11, // 0x6f
- any = -0x12, // 0x6e
- eq = -0x13, // 0x6d
- i31 = -0x16, // 0x6a
- data = -0x19, // 0x67
+ func = -0x10, // 0x70
+ any = -0x11, // 0x6f
+ eq = -0x13, // 0x6d
+ i31 = -0x16, // 0x6a
+ data = -0x19, // 0x67
};
namespace UserSections {