diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 18:24:44 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 18:24:44 -0700 |
commit | 295b89e59b926e4e5e00386cb981eef3036c9e76 (patch) | |
tree | 2e9d594ae9efdd2a582ef7c4ae90593ee1b2d305 /tools/test-js-optimizer-asm-outline1.js | |
parent | 105a9678505f3f34242f89aa0d5a28ee9dacfee6 (diff) |
test for forwarding variables to outlined code
Diffstat (limited to 'tools/test-js-optimizer-asm-outline1.js')
-rw-r--r-- | tools/test-js-optimizer-asm-outline1.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-outline1.js b/tools/test-js-optimizer-asm-outline1.js index 838cbd4e..db9ab685 100644 --- a/tools/test-js-optimizer-asm-outline1.js +++ b/tools/test-js-optimizer-asm-outline1.js @@ -157,5 +157,20 @@ function mix() { } return 20; } +function vars(x, y) { + x = x | 0; + y = +y; + var a = 0, b = +0; + a = x+y; + b = y*x; + c(1+a); + c(2+b); + c(3+a); + c(4+b); + c(5+a); + c(6+b); + c(7+a); + c(8+b); +} // EMSCRIPTEN_GENERATED_FUNCTIONS // EXTRA_INFO: { "sizeToOutline": 30 } |