Unified continue/break labels with binaryen labels; Module-level global exports

This commit is contained in:
dcodeIO
2017-12-06 17:47:48 +01:00
parent f045975a4b
commit 29468846ab
23 changed files with 192 additions and 148 deletions

View File

@ -6,7 +6,7 @@
(export "loopWhileInWhile" (func $while/loopWhileInWhile))
(export "memory" (memory $0))
(func $while/loopWhile (; 0 ;) (type $iv) (param $0 i32)
(loop $continue$1.1
(loop $continue|1.1
(if
(get_local $0)
(block
@ -16,13 +16,13 @@
(i32.const 1)
)
)
(br $continue$1.1)
(br $continue|1.1)
)
)
)
)
(func $while/loopWhileInWhile (; 1 ;) (type $iv) (param $0 i32)
(loop $continue$1.1
(loop $continue|1.1
(if
(get_local $0)
(block
@ -32,7 +32,7 @@
(i32.const 1)
)
)
(loop $continue$1.2
(loop $continue|1.2
(if
(get_local $0)
(block
@ -42,11 +42,11 @@
(i32.const 1)
)
)
(br $continue$1.2)
(br $continue|1.2)
)
)
)
(br $continue$1.1)
(br $continue|1.1)
)
)
)