diff options
author | Jez Ng <me@jezng.com> | 2013-06-22 22:14:31 -0700 |
---|---|---|
committer | Jez Ng <me@jezng.com> | 2013-06-22 23:46:31 -0700 |
commit | 7ff0dde7802ca3596457d3b15ece6949ed380a15 (patch) | |
tree | e783289f86dca3b2c8970108773175ee97a67173 /tools/test-js-optimizer-asm-regs-min.js | |
parent | 2b54c4f9164df8e7aced49930926589f7524de42 (diff) | |
parent | c001e260ef766875fba65ae1f9848cfe6add90c7 (diff) |
Merge remote-tracking branch 'upstream/incoming' into source-maps
Conflicts:
emcc
tools/js-optimizer.js
tools/js_optimizer.py
Diffstat (limited to 'tools/test-js-optimizer-asm-regs-min.js')
-rw-r--r-- | tools/test-js-optimizer-asm-regs-min.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tools/test-js-optimizer-asm-regs-min.js b/tools/test-js-optimizer-asm-regs-min.js index c126946d..f47dbff3 100644 --- a/tools/test-js-optimizer-asm-regs-min.js +++ b/tools/test-js-optimizer-asm-regs-min.js @@ -1,37 +1,37 @@ function collideLocal(x) { - x = x | 0; - var a = 0; - a = x*x; - aGlobal(a); // aGlobal needs to be minified into a, but a is used! - bGlobal(x); + x = x | 0; + var a = 0; + a = x*x; + aGlobal(a); // aGlobal needs to be minified into a, but a is used! + bGlobal(x); } function collideLocal(x) { - x = x | 0; - var i1 = 0; - i1 = x*x; - aGlobal(i1); - bGlobal(x); // bGlobal needs to be minified into i1, but i1 is used! + x = x | 0; + var i1 = 0; + i1 = x*x; + aGlobal(i1); + bGlobal(x); // bGlobal needs to be minified into i1, but i1 is used! } function collideLocal(a) { - a = a | 0; - var x = 0; - x = a*a; - aGlobal(x); // aGlobal needs to be minified into a, but a is used by a param! - bGlobal(a); + a = a | 0; + var x = 0; + x = a*a; + aGlobal(x); // aGlobal needs to be minified into a, but a is used by a param! + bGlobal(a); } function collideLocal(i1) { - i1 = i1 | 0; - var x = 0; - x = i1*i1; - aGlobal(x); - bGlobal(i1); // bGlobal needs to be minified into i1, but i1 is used by a param! + i1 = i1 | 0; + var x = 0; + x = i1*i1; + aGlobal(x); + bGlobal(i1); // bGlobal needs to be minified into i1, but i1 is used by a param! } function collideLocal(i1) { - i1 = i1 | 0; - var a = 0; - a = i1*i1; - aGlobal(a); // multiple collisions, a and i1 - bGlobal(i1); + i1 = i1 | 0; + var a = 0; + a = i1*i1; + aGlobal(a); // multiple collisions, a and i1 + bGlobal(i1); } // EMSCRIPTEN_GENERATED_FUNCTIONS // MINIFY_INFO: { "names": ["a", "b", "c", "d", "e", "f", "g", "h", "i", "i1", "cl"], "globals": { "aGlobal": "a", "bGlobal": "i1", "collideLocal": "cl" } } |