Implement the env shuffling to enable blocks with labels and breaking to them (via 'hidden' depth constant added to each block env, from which the block depth is subtracted in the br vau

This commit is contained in:
Nathan Braswell
2021-07-25 02:14:20 -04:00
parent ece3844c88
commit 3ad51ce19d
2 changed files with 14 additions and 6 deletions

View File

@@ -8,12 +8,16 @@
(func $add (param $num i32) (result i32)
(local $tmp1 i32)
(local $tmp2 i32)
(block
(block $test
(i32.const 1337)
(i32.const 1338)
drop
drop
(br 0)
(block $inner_test
(br $inner_test)
(br $test)
)
(br $test)
drop
)
(i32.const 11)