diff options
author | Thomas Lively <tlively@google.com> | 2022-10-04 21:51:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 19:51:35 -0700 |
commit | 5b0977d564ef7f20f066a3082720b5b7327642c2 (patch) | |
tree | 441411e4b0fbe3efe321fd87199a3c07024329b1 /test/heap-types.wast.from-wast | |
parent | 9868e17f729983722ca0f8f5a4c91f63db52a703 (diff) | |
download | binaryen-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.from-wast')
-rw-r--r-- | test/heap-types.wast.from-wast | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/heap-types.wast.from-wast b/test/heap-types.wast.from-wast index 527184084..09a12833f 100644 --- a/test/heap-types.wast.from-wast +++ b/test/heap-types.wast.from-wast @@ -5,15 +5,15 @@ (type $none_=>_none (func)) (type $struct.C (struct (field $named-mut (mut f32)))) (type $matrix (array (mut (ref null $vector)))) - (type $grandchild (struct (field i32) (field i64))) (type $bytes (array (mut i8))) + (type $grandchild (struct (field i32) (field i64))) (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)))) |