diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-19 11:53:52 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-19 11:53:52 -0800 |
commit | b961c328f28daff5d1824ad4d04e076ab0ac7f34 (patch) | |
tree | ce8001773dcac0d4cb58108e9751beef4f32c367 /tools/test-js-optimizer-asm-last-output.js | |
parent | 35cbbe82edf2173092592244aa342285fbcb5e44 (diff) |
emit 5.0 instead of +5 in asm
Diffstat (limited to 'tools/test-js-optimizer-asm-last-output.js')
-rw-r--r-- | tools/test-js-optimizer-asm-last-output.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-last-output.js b/tools/test-js-optimizer-asm-last-output.js new file mode 100644 index 00000000..5a87f3c4 --- /dev/null +++ b/tools/test-js-optimizer-asm-last-output.js @@ -0,0 +1,27 @@ +function finall(x) { + x = +x; + var a = 5.0; + a = +x; + a = 17; + a = 44.0; + a = 44.0; + a = 44.9; + a = 1278.0e3; + a = 12.0e10; + a = -x; + a = -17; + a = -44; + a = -44; + a = -44.9; + a = -1278e3; + a = -12e10; + a = +-x; + a = -17.0; + a = -44.0; + a = -44.0; + a = -44.9; + a = -1278.0e3; + a = -12.0e10; + return 12.0e10; +} + |