Add trapMode option to asc; Disable flatten/ssa passes for now

This commit is contained in:
dcodeIO
2017-12-09 02:38:17 +01:00
parent 6d8de50565
commit 732068e981
16 changed files with 1339 additions and 1550 deletions

View File

@ -5,28 +5,14 @@
(export "memory" (memory $0))
(start $start)
(func $start (; 0 ;) (type $v)
(local $0 i32)
(set_global $ternary/a
(tee_local $0
(i32.const 1)
)
(i32.const 1)
)
(set_global $ternary/a
(tee_local $0
(i32.const 1)
)
)
(if
(tee_local $0
(i32.const 1)
)
(set_local $0
(i32.const 1)
)
(unreachable)
(i32.const 1)
)
(set_global $ternary/a
(get_local $0)
(i32.const 1)
)
)
)