diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-05-31 20:02:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-31 20:02:37 -0700 |
commit | fe99e3458f11d1a01fa3ad5b68883dbcba3903af (patch) | |
tree | 6f5eda61c7c7cba9c3b16be5e361cdc148d8b315 /test/passes/metrics_all-features.txt | |
parent | 7306f60a4474ca1fa948bddee5c068e7c2f635f6 (diff) | |
download | binaryen-fe99e3458f11d1a01fa3ad5b68883dbcba3903af.tar.gz binaryen-fe99e3458f11d1a01fa3ad5b68883dbcba3903af.tar.bz2 binaryen-fe99e3458f11d1a01fa3ad5b68883dbcba3903af.zip |
Add event section (#2151)
This adds support for the event and the event section, as specified in
https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md#changes-to-the-binary-model.
Wasm events are features that suspend the current execution and transfer
the control flow to a corresponding handler. Currently the only
supported event kind is exceptions.
For events, this includes support for
- Binary file reading/writing
- Wast file reading/writing
- Binaryen.js API
- Fuzzer
- Validation
- Metadce
- Passes: metrics, minify-imports-and-exports,
remove-unused-module-elements
Diffstat (limited to 'test/passes/metrics_all-features.txt')
-rw-r--r-- | test/passes/metrics_all-features.txt | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/test/passes/metrics_all-features.txt b/test/passes/metrics_all-features.txt new file mode 100644 index 000000000..ba772597d --- /dev/null +++ b/test/passes/metrics_all-features.txt @@ -0,0 +1,75 @@ +total + [events] : 2 + [exports] : 0 + [funcs] : 1 + [globals] : 1 + [imports] : 0 + [memory-data] : 9 + [table-data] : 3 + [total] : 27 + [vars] : 1 + binary : 1 + block : 1 + const : 15 + drop : 6 + if : 4 +(module + (type $0 (func (param i32))) + (type $FUNCSIG$vii (func (param i32 i32))) + (memory $0 256 256) + (data (i32.const 0) "\ff\ef\0f\1f 0@P\99") + (table $0 256 256 funcref) + (elem (i32.const 0) $ifs $ifs $ifs) + (global $glob i32 (i32.const 1337)) + (event $e0 (attr 0) (param i32)) + (event $e1 (attr 0) (param i32 i32)) + (func $ifs (; 0 ;) (type $0) (param $x i32) + (local $y f32) + (block $block0 + (if + (i32.const 0) + (drop + (i32.const 1) + ) + ) + (if + (i32.const 0) + (drop + (i32.const 1) + ) + (drop + (i32.const 2) + ) + ) + (if + (i32.const 4) + (drop + (i32.const 5) + ) + (drop + (i32.const 6) + ) + ) + (drop + (i32.eq + (if (result i32) + (i32.const 4) + (i32.const 5) + (i32.const 6) + ) + (i32.const 177) + ) + ) + ) + ) +) +total + [events] : 0 + [exports] : 0 + [funcs] : 0 + [globals] : 0 + [imports] : 0 + [total] : 0 + [vars] : 0 +(module +) |