OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --deopt-every-n-times=1 --no-enable_sse4_1 | 5 // Flags: --deopt-every-n-times=1 --no-enable-sse4-1 |
6 | 6 |
7 function g(f, x, name) { | 7 function g(f, x, name) { |
8 var v2 = f(x); | 8 var v2 = f(x); |
9 for (var i = 0; i < 13000; i++) { | 9 for (var i = 0; i < 13000; i++) { |
10 f(i); | 10 f(i); |
11 } | 11 } |
12 var v1 = f(x); | 12 var v1 = f(x); |
13 assertEquals(v1, v2); | 13 assertEquals(v1, v2); |
14 } | 14 } |
15 | 15 |
16 g(Math.sin, 6.283185307179586, "Math.sin"); | 16 g(Math.sin, 6.283185307179586, "Math.sin"); |
OLD | NEW |