summaryrefslogtreecommitdiff
path: root/test/heap-types.wast.fromBinary
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-10-04 21:51:35 -0500
committerGitHub <noreply@github.com>2022-10-04 19:51:35 -0700
commit5b0977d564ef7f20f066a3082720b5b7327642c2 (patch)
tree441411e4b0fbe3efe321fd87199a3c07024329b1 /test/heap-types.wast.fromBinary
parent9868e17f729983722ca0f8f5a4c91f63db52a703 (diff)
downloadbinaryen-5b0977d564ef7f20f066a3082720b5b7327642c2.tar.gz
binaryen-5b0977d564ef7f20f066a3082720b5b7327642c2.tar.bz2
binaryen-5b0977d564ef7f20f066a3082720b5b7327642c2.zip
Simplify and fix heap type counting (#5110)
Annotations on array.get and array.set were not being counted and the code could generally be simplified since `count` already ignores types that don't need to be counted.
Diffstat (limited to 'test/heap-types.wast.fromBinary')
-rw-r--r--test/heap-types.wast.fromBinary6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/heap-types.wast.fromBinary b/test/heap-types.wast.fromBinary
index e8d96de24..266d04f93 100644
--- a/test/heap-types.wast.fromBinary
+++ b/test/heap-types.wast.fromBinary
@@ -4,16 +4,16 @@
(type $struct.B (struct (field i8) (field (mut i16)) (field (ref $struct.A)) (field (mut (ref $struct.A)))))
(type $none_=>_none (func))
(type $matrix (array (mut (ref null $vector))))
+ (type $bytes (array (mut i8)))
(type $struct.C (struct (field $named-mut (mut f32))))
(type $grandchild (struct (field i32) (field i64)))
- (type $bytes (array (mut i8)))
(type $anyref_=>_none (func (param anyref)))
(type $nested-child-struct (struct (field (mut (ref $child)))))
+ (type $words (array (mut i32)))
+ (type $nested-child-array (array (mut (ref $child))))
(type $child (struct (field i32)))
(type $ref|$struct.A|_=>_ref|$struct.B| (func (param (ref $struct.A)) (result (ref $struct.B))))
(type $ref|$vector|_=>_ref|$matrix| (func (param (ref $vector)) (result (ref $matrix))))
- (type $words (array (mut i32)))
- (type $nested-child-array (array (mut (ref $child))))
(type $ref|$vector|_ref?|$vector|_=>_none (func (param (ref $vector) (ref null $vector))))
(type $none_=>_ref|$vector| (func (result (ref $vector))))
(type $none_=>_ref|$bytes| (func (result (ref $bytes))))