| 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 "use strict"; | 7 "use strict"; |
| 8 | 8 |
| 9 function test(expected, func) { | 9 function test(expected, func) { |
| 10 assertEquals(expected, func()); | 10 assertEquals(expected, func()); |
| 11 assertEquals(expected, func()); | 11 assertEquals(expected, func()); |
| 12 assertEquals(expected, func()); | 12 assertEquals(expected, func()); |
| 13 } | 13 } |
| 14 | 14 |
| 15 function foo() { | 15 function foo() { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 %OptimizeOsr(); | 49 %OptimizeOsr(); |
| 50 if (i) break outer; | 50 if (i) break outer; |
| 51 else result = y; | 51 else result = y; |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 return result; | 55 return result; |
| 56 } | 56 } |
| 57 | 57 |
| 58 test(11, smo); | 58 test(11, smo); |
| OLD | NEW |