diff options
author | Thomas Lively <tlively@google.com> | 2022-10-18 13:19:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 13:19:22 -0500 |
commit | 6bef18672fae68ee4976a7b26f277f6caa32734f (patch) | |
tree | e2198250c704715bbe968a0684c9dc79235fdffd /src/wasm-type.h | |
parent | 43c62ee5a1506535fcb67b84723264ac4cec008a (diff) | |
download | binaryen-6bef18672fae68ee4976a7b26f277f6caa32734f.tar.gz binaryen-6bef18672fae68ee4976a7b26f277f6caa32734f.tar.bz2 binaryen-6bef18672fae68ee4976a7b26f277f6caa32734f.zip |
Implement `array` basic heap type (#5148)
`array` is the supertype of all defined array types and for now is a subtype of
`data`. (Once `data` becomes `struct` this will no longer be true.) Update the
binary and text parsing of `array.len` to ignore the obsolete type annotation
and update the binary emitting to emit a zero in place of the old type
annotation and the text printing to print an arbitrary heap type for the
annotation. A follow-on PR will add support for the newer unannotated version of
`array.len`.
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 36c2cbede..dbf99d512 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -325,6 +325,7 @@ public: eq, i31, data, + array, string, stringview_wtf8, stringview_wtf16, |