summaryrefslogtreecommitdiff
path: root/test/extra-unreachable.wast.fromBinary
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-11-25 15:46:56 -0800
committerGitHub <noreply@github.com>2019-11-25 15:46:56 -0800
commit8a70121a421204e05d020c67294e7e517c2d15d2 (patch)
treeda493f5ee5c8a3dfd18fba7518e05d25b1a71fba /test/extra-unreachable.wast.fromBinary
parentd90583cf509c3f21b3b5136d3872b097c5f2800c (diff)
downloadbinaryen-8a70121a421204e05d020c67294e7e517c2d15d2.tar.gz
binaryen-8a70121a421204e05d020c67294e7e517c2d15d2.tar.bz2
binaryen-8a70121a421204e05d020c67294e7e517c2d15d2.zip
Remove FunctionType from Event (#2466)
This is the start of a larger refactoring to remove FunctionType entirely and store types and signatures directly on the entities that use them. This PR updates BrOnExn and Events to remove their use of FunctionType and makes the BinaryWriter traverse the module and collect types rather than using the global FunctionType list. While we are collecting types, we also sort them by frequency as an optimization. Remaining uses of FunctionType in Function, CallIndirect, and parsing will be removed in a future PR.
Diffstat (limited to 'test/extra-unreachable.wast.fromBinary')
-rw-r--r--test/extra-unreachable.wast.fromBinary6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/extra-unreachable.wast.fromBinary b/test/extra-unreachable.wast.fromBinary
index c921e925e..3c3c5f71c 100644
--- a/test/extra-unreachable.wast.fromBinary
+++ b/test/extra-unreachable.wast.fromBinary
@@ -1,12 +1,12 @@
(module
(type $0 (func))
- (type $1 (func (param i32) (result i32)))
- (type $2 (func (param i32)))
+ (type $1 (func (param i32)))
+ (type $2 (func (param i32) (result i32)))
(memory $0 (shared 1 1))
(table $0 0 funcref)
(global $global$0 (mut f32) (f32.const 0))
(event $event$0 (attr 0) (param i32))
- (func $foo (; 0 ;) (type $1) (param $0 i32) (result i32)
+ (func $foo (; 0 ;) (type $2) (param $0 i32) (result i32)
(i32.const 0)
)
(func $test_function_block (; 1 ;) (type $0)