diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 15:10:36 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 15:10:36 -0800 |
commit | 92a1c1e242fa6b49573a1f92ac5155400f81cd2f (patch) | |
tree | 6f341d61f34df02171dafa97308c40e6829155f7 /tools/test-js-optimizer-asm-regs.js | |
parent | 73eff601dabda042afcd9d80b4b290d7ca6858fc (diff) |
forward in Math_* from Math.* and correct the compiled code to align to that
Diffstat (limited to 'tools/test-js-optimizer-asm-regs.js')
-rw-r--r-- | tools/test-js-optimizer-asm-regs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-js-optimizer-asm-regs.js b/tools/test-js-optimizer-asm-regs.js index b1a2663b..2ae21f5e 100644 --- a/tools/test-js-optimizer-asm-regs.js +++ b/tools/test-js-optimizer-asm-regs.js @@ -4,7 +4,7 @@ function asm(x, y) { var int1 = 0, int2 = 0; // do not mix the types! var double1 = +0, double2 = +0; int1 = (x+x)|0; - double1 = d(); + double1 = d(Math.max(10, Math_min(5, f()))); int2 = (int1+2)|0; print(int2); double2 = double1*5; |