| 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: --noanalyze-environment-liveness | 6 // Flags: --noanalyze-environment-liveness |
| 6 | 7 |
| 7 function f() { | 8 function f() { |
| 8 var __v_7 = -126 - __v_3; | 9 var x = 0; |
| 9 var __v_17 = ((__v_15 & __v_14) != 4) | 16; | 10 for (var y = 0; y < 0; ++y) { |
| 10 if (__v_17) { | 11 x = (x + y) | 0; |
| 11 var __v_11 = 1 << __v_7; | |
| 12 } | 12 } |
| 13 __v_12 >>= __v_3; | 13 return unbound; |
| 14 } | 14 } |
| 15 | 15 %OptimizeFunctionOnNextCall(f); |
| 16 assertThrows(f); | 16 assertThrows(f, ReferenceError); |
| OLD | NEW |