OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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: --allow-natives-syntax --turbo-filter=f --turbo-deoptimization | 5 // Flags: --allow-natives-syntax --turbo-filter=f |
6 // Flags: --noanalyze-environment-liveness | 6 // Flags: --noanalyze-environment-liveness |
7 | 7 |
8 function f() { | 8 function f() { |
9 var x = 0; | 9 var x = 0; |
10 for (var y = 0; y < 0; ++y) { | 10 for (var y = 0; y < 0; ++y) { |
11 x = (x + y) | 0; | 11 x = (x + y) | 0; |
12 } | 12 } |
13 return unbound; | 13 return unbound; |
14 } | 14 } |
15 %OptimizeFunctionOnNextCall(f); | 15 %OptimizeFunctionOnNextCall(f); |
16 assertThrows(f, ReferenceError); | 16 assertThrows(f, ReferenceError); |
OLD | NEW |