diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-11-25 15:46:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 15:46:56 -0800 |
commit | 8a70121a421204e05d020c67294e7e517c2d15d2 (patch) | |
tree | da493f5ee5c8a3dfd18fba7518e05d25b1a71fba /test/extra-unreachable.wast.fromBinary.noDebugInfo | |
parent | d90583cf509c3f21b3b5136d3872b097c5f2800c (diff) | |
download | binaryen-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.noDebugInfo')
-rw-r--r-- | test/extra-unreachable.wast.fromBinary.noDebugInfo | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/extra-unreachable.wast.fromBinary.noDebugInfo b/test/extra-unreachable.wast.fromBinary.noDebugInfo index 1cb1e02de..4be633808 100644 --- a/test/extra-unreachable.wast.fromBinary.noDebugInfo +++ b/test/extra-unreachable.wast.fromBinary.noDebugInfo @@ -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 $0 (; 0 ;) (type $1) (param $0 i32) (result i32) + (func $0 (; 0 ;) (type $2) (param $0 i32) (result i32) (i32.const 0) ) (func $1 (; 1 ;) (type $0) |