From 6bef18672fae68ee4976a7b26f277f6caa32734f Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 18 Oct 2022 13:19:22 -0500 Subject: 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`. --- src/wasm-type.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wasm-type.h') 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, -- cgit v1.2.3