Precompute and inline constant globals

This is necessary so that other constant globals referencing constant globals can be precomputed as well (NON_STANDALONE_FLOW in binaryen)
This commit is contained in:
dcodeIO
2017-12-06 23:38:17 +01:00
parent d63ed925a9
commit 9ae3328e58
13 changed files with 323 additions and 198 deletions

View File

@ -27,12 +27,12 @@
(drop
(i32.add
(call $export/add
(get_global $export/a)
(get_global $export/b)
(i32.const 1)
(i32.const 2)
)
(call $export/sub
(get_global $export/b)
(get_global $export/a)
(i32.const 2)
(i32.const 1)
)
)
)