diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-12-07 19:32:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 19:32:48 -0800 |
commit | 2a0059dec2fe01dcf1358e0120c32aadd2d765b6 (patch) | |
tree | 639e392e995c92140a242818663437f00fd2948a /test/multivalue.wast.fromBinary | |
parent | a84898c11df3d93fb69365fb274a9bb06d60ed47 (diff) | |
download | binaryen-2a0059dec2fe01dcf1358e0120c32aadd2d765b6.tar.gz binaryen-2a0059dec2fe01dcf1358e0120c32aadd2d765b6.tar.bz2 binaryen-2a0059dec2fe01dcf1358e0120c32aadd2d765b6.zip |
Intern HeapTypes and clean up types code (#3428)
Interns HeapTypes using the same patterns and utilities already used to intern
Types. This allows HeapTypes to efficiently be compared for equality and hashed,
which may be important for very large struct types in the future. This change
also has the benefit of increasing symmetry between the APIs of Type and
HeapType, which will make the developer experience more consistent. Finally,
this change will make TypeBuilder (#3418) much simpler because it will no longer
have to introduce TypeInfo variants to refer to HeapTypes indirectly.
Diffstat (limited to 'test/multivalue.wast.fromBinary')
-rw-r--r-- | test/multivalue.wast.fromBinary | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/multivalue.wast.fromBinary b/test/multivalue.wast.fromBinary index bf7afcf90..570408218 100644 --- a/test/multivalue.wast.fromBinary +++ b/test/multivalue.wast.fromBinary @@ -5,8 +5,8 @@ (type $none_=>_i64 (func (result i64))) (type $none_=>_f32_i64_i32 (func (result f32 i64 i32))) (type $none_=>_i32 (func (result i32))) - (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (type $none_=>_f32 (func (result f32))) + (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (import "env" "pair" (func $pair (result i32 i64))) (global $g1 (mut i32) (i32.const 0)) (global $g2 (mut i64) (i64.const 0)) |