| 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 --use-osr --turbo-osr | 5 // Flags: --allow-natives-syntax --use-osr |
| 6 | 6 |
| 7 function mod() { | 7 function mod() { |
| 8 function f0() { | 8 function f0() { |
| 9 for (var i = 0; i < 3; i = i + 1 | 0) { | 9 for (var i = 0; i < 3; i = i + 1 | 0) { |
| 10 %OptimizeOsr(); | 10 %OptimizeOsr(); |
| 11 } | 11 } |
| 12 return {blah: i}; | 12 return {blah: i}; |
| 13 } | 13 } |
| 14 | 14 |
| 15 function f1(a) { | 15 function f1(a) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 assertEquals(3, f3(1,2,3).blah); | 47 assertEquals(3, f3(1,2,3).blah); |
| 48 assertEquals(3, f4(1,2,3,4).blah); | 48 assertEquals(3, f4(1,2,3,4).blah); |
| 49 } | 49 } |
| 50 bar(); | 50 bar(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 | 53 |
| 54 mod(); | 54 mod(); |
| 55 mod(); | 55 mod(); |
| 56 mod(); | 56 mod(); |
| OLD | NEW |