| 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: --allow-natives-syntax | 5 // Flags: --allow-natives-syntax |
| 6 | 6 |
| 7 function mod1() { | 7 function mod1() { |
| 8 var v_1 = 1; | 8 var v_1 = 1; |
| 9 var v_2 = 1; | 9 var v_2 = 1; |
| 10 v_1++; | 10 v_1++; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 function bug2() { | 33 function bug2() { |
| 34 for (var i = 0; i < 1; v_4++) { | 34 for (var i = 0; i < 1; v_4++) { |
| 35 if (v_3 == 1) ; | 35 if (v_3 == 1) ; |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 | 38 |
| 39 assertThrows(bug2); | 39 assertThrows(bug2); |
| 40 %OptimizeFunctionOnNextCall(bug2); | 40 %OptimizeFunctionOnNextCall(bug2); |
| 41 assertThrows(bug2); | 41 assertThrows(bug2); |
| OLD | NEW |