Chromium Code Reviews| Index: test/mjsunit/math-floor-of-div.js |
| =================================================================== |
| --- test/mjsunit/math-floor-of-div.js (revision 11872) |
| +++ test/mjsunit/math-floor-of-div.js (working copy) |
| @@ -214,3 +214,15 @@ |
| %OptimizeFunctionOnNextCall(test_div_deopt_overflow); |
| test_div_deopt_minus_zero(); |
| test_div_deopt_overflow(); |
| + |
|
Yang
2012/06/20 12:19:42
Please create a new test file called math-floor-of
Zheng Liu
2012/06/20 13:54:15
Done.
|
| +if (false) { |
| +function test_div_no_deopt_minus_zero() { |
| + var zero_in_array = [0]; |
| + assertTrue(0 === (Math.floor((zero_in_array[0] | 0) / -1) | 0)); |
| +} |
| + |
| +test_div_no_deopt_minus_zero(); |
| +%OptimizeFunctionOnNextCall(test_div_no_deopt_minus_zero); |
| +test_div_no_deopt_minus_zero(); |
| +assertTrue(2 != %GetOptimizationStatus(test_div_no_deopt_minus_zero)); |
| +} |