summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-01-21 22:09:47 +0000
committerGitHub <noreply@github.com>2021-01-21 14:09:47 -0800
commit3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d (patch)
tree30d3ddedf6ae2de10f56d6acea64f2b17640041b /src/wasm-binary.h
parent527e9f9ed76cee0baaa67e89569c282a3782be08 (diff)
downloadbinaryen-3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d.tar.gz
binaryen-3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d.tar.bz2
binaryen-3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d.zip
[GC] Add dataref type (#3500)
This is not 100% of everything, but is enough to get tests passing, which includes full binary and text format support, getting all switches to compile without error, and some additions to InstrumentLocals.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index c1d2a2b6d..06a294c6d 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -357,9 +357,10 @@ enum EncodedType {
// run-time type info type, with depth index n
rtt_n = -0x17, // 0x69
// run-time type info type, without depth index n
- rtt = -0x18, // 0x68
+ rtt = -0x18, // 0x68
+ dataref = -0x19, // 0x67
// exception reference type TODO remove; the code for now is incorrect
- exnref = -0x19, // 0x67
+ exnref = -0x1a, // 0x66
// func_type form
Func = -0x20, // 0x60
Struct = -0x21, // 0x5f
@@ -375,6 +376,7 @@ enum EncodedHeapType {
eq = -0x13, // 0x6d
i31 = -0x16, // 0x6a
exn = -0x18, // 0x68
+ data = -0x19, // 0x67
};
namespace UserSections {