summaryrefslogtreecommitdiff
path: root/test/passes/simplify-locals.wast
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-11 13:40:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-11 13:40:07 -0700
commit65d9334b3066bae667e729f3202f7aa2d7c11530 (patch)
tree1e7b14252f63ee760810aac3c5727bae0edf7362 /test/passes/simplify-locals.wast
parent675c045de41d609e431a5b97f8b00fe433dd18cd (diff)
downloadbinaryen-65d9334b3066bae667e729f3202f7aa2d7c11530.tar.gz
binaryen-65d9334b3066bae667e729f3202f7aa2d7c11530.tar.bz2
binaryen-65d9334b3066bae667e729f3202f7aa2d7c11530.zip
De-recurse traversals (#333)
* refactor core walking to not recurse * add a simplify-locals test * reuse parent's non-branchey scan logic in SimpleExecutionWalker, reduce code duplication * update wasm.js * rename things following comments
Diffstat (limited to 'test/passes/simplify-locals.wast')
-rw-r--r--test/passes/simplify-locals.wast9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/passes/simplify-locals.wast b/test/passes/simplify-locals.wast
index 24f8476d2..70d798ea2 100644
--- a/test/passes/simplify-locals.wast
+++ b/test/passes/simplify-locals.wast
@@ -158,5 +158,14 @@
(get_local $b)
)
)
+ (func $memories (param $i2 i32) (param $i3 i32)
+ (set_local $i3
+ (i32.const 1)
+ )
+ (i32.store8
+ (get_local $i2)
+ (get_local $i3)
+ )
+ )
)