summaryrefslogtreecommitdiff
path: root/src/wasm-traversal.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-09-20 10:47:14 -0700
committerGitHub <noreply@github.com>2021-09-20 17:47:14 +0000
commit737c22d30798c491eea3b401b948b9327ac979de (patch)
treef75a72adbd81a85eca19b732378837670c828b23 /src/wasm-traversal.h
parentb5e8c371001de20128453d5064ac0422d481020e (diff)
downloadbinaryen-737c22d30798c491eea3b401b948b9327ac979de.tar.gz
binaryen-737c22d30798c491eea3b401b948b9327ac979de.tar.bz2
binaryen-737c22d30798c491eea3b401b948b9327ac979de.zip
[Wasm GC] Add static variants of ref.test, ref.cast, and br_on_cast* (#4163)
These variants take a HeapType that is the type we intend to cast to, and do not take an RTT. These are intended to be more statically optimizable. For now though this PR just implements the minimum to get them parsing and to get through the optimizer without crashing. Spec: https://docs.google.com/document/d/1afthjsL_B9UaMqCA5ekgVmOm75BVFu6duHNsN9-gnXw/edit# See #4149
Diffstat (limited to 'src/wasm-traversal.h')
-rw-r--r--src/wasm-traversal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h
index d3e2a19da..47e99226d 100644
--- a/src/wasm-traversal.h
+++ b/src/wasm-traversal.h
@@ -373,6 +373,7 @@ struct PostWalker : public Walker<SubType, VisitorType> {
#define DELEGATE_FIELD_SCOPE_NAME_USE_VECTOR(id, name)
#define DELEGATE_FIELD_SIGNATURE(id, name)
#define DELEGATE_FIELD_TYPE(id, name)
+#define DELEGATE_FIELD_HEAPTYPE(id, name)
#define DELEGATE_FIELD_ADDRESS(id, name)
#include "wasm-delegations-fields.def"