summaryrefslogtreecommitdiff
path: root/src/wasm-delegations-fields.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-05-27 12:53:05 -0700
committerGitHub <noreply@github.com>2021-05-27 12:53:05 -0700
commit97f37aa13ce3ed318dc18980f03c41e7536624a5 (patch)
treee192a2c89442cdbae8f16f481c32434b00a376a7 /src/wasm-delegations-fields.h
parent27a18f990e022cfe5b6a5485fd2eaca73b6dfbaa (diff)
downloadbinaryen-97f37aa13ce3ed318dc18980f03c41e7536624a5.tar.gz
binaryen-97f37aa13ce3ed318dc18980f03c41e7536624a5.tar.bz2
binaryen-97f37aa13ce3ed318dc18980f03c41e7536624a5.zip
[Wasm GC] Add experimental array.copy (#3911)
Spec for it is here: https://docs.google.com/document/d/1DklC3qVuOdLHSXB5UXghM_syCh-4cMinQ50ICiXnK3Q/edit# Also reorder some things in wasm.h that were not in the canonical order (that has no effect, but it is confusing to read).
Diffstat (limited to 'src/wasm-delegations-fields.h')
-rw-r--r--src/wasm-delegations-fields.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wasm-delegations-fields.h b/src/wasm-delegations-fields.h
index 16ef11193..e4b6c92e3 100644
--- a/src/wasm-delegations-fields.h
+++ b/src/wasm-delegations-fields.h
@@ -655,6 +655,16 @@ switch (DELEGATE_ID) {
DELEGATE_END(ArrayLen);
break;
}
+ case Expression::Id::ArrayCopyId: {
+ DELEGATE_START(ArrayCopy);
+ DELEGATE_FIELD_CHILD(ArrayCopy, length);
+ DELEGATE_FIELD_CHILD(ArrayCopy, srcIndex);
+ DELEGATE_FIELD_CHILD(ArrayCopy, srcRef);
+ DELEGATE_FIELD_CHILD(ArrayCopy, destIndex);
+ DELEGATE_FIELD_CHILD(ArrayCopy, destRef);
+ DELEGATE_END(ArrayCopy);
+ break;
+ }
case Expression::Id::RefAsId: {
DELEGATE_START(RefAs);
DELEGATE_FIELD_INT(RefAs, op);