summaryrefslogtreecommitdiff
path: root/src/wasm-delegations-fields.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-12-11 08:27:43 -0800
committerGitHub <noreply@github.com>2020-12-11 08:27:43 -0800
commite16cf5818de5a6e37ffcbce0bcde320290d9f9f1 (patch)
tree84a8a0d0e1031409501a548e465a89380ce7da80 /src/wasm-delegations-fields.h
parente1978e0274de74aa9ce5c6bcfa71e03ddadeb685 (diff)
downloadbinaryen-e16cf5818de5a6e37ffcbce0bcde320290d9f9f1.tar.gz
binaryen-e16cf5818de5a6e37ffcbce0bcde320290d9f9f1.tar.bz2
binaryen-e16cf5818de5a6e37ffcbce0bcde320290d9f9f1.zip
[GC] Add ref.test and ref.cast (#3439)
This adds enough to read and write them and test that, but leaves interpreter support for later.
Diffstat (limited to 'src/wasm-delegations-fields.h')
-rw-r--r--src/wasm-delegations-fields.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm-delegations-fields.h b/src/wasm-delegations-fields.h
index b90bf720b..d53af695f 100644
--- a/src/wasm-delegations-fields.h
+++ b/src/wasm-delegations-fields.h
@@ -559,13 +559,15 @@ switch (DELEGATE_ID) {
}
case Expression::Id::RefTestId: {
DELEGATE_START(RefTest);
- WASM_UNREACHABLE("TODO (gc): ref.test");
+ DELEGATE_FIELD_CHILD(RefTest, ref);
+ DELEGATE_FIELD_CHILD(RefTest, rtt);
DELEGATE_END(RefTest);
break;
}
case Expression::Id::RefCastId: {
DELEGATE_START(RefCast);
- WASM_UNREACHABLE("TODO (gc): ref.cast");
+ DELEGATE_FIELD_CHILD(RefCast, ref);
+ DELEGATE_FIELD_CHILD(RefCast, rtt);
DELEGATE_END(RefCast);
break;
}