| 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 bar() { | 15 function bar() { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 result = ret; | 74 result = ret; |
| 75 function ret() { | 75 function ret() { |
| 76 return sum; | 76 return sum; |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 return result; | 79 return result; |
| 80 } | 80 } |
| 81 | 81 |
| 82 test(4005, blo()); | 82 test(4005, blo()); |
| OLD | NEW |