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 foo() { | 9 function foo() { |
10 var result = new Array(); | 10 var result = new Array(); |
11 var out; | 11 var out; |
12 { | 12 { |
13 let sum = 0; | 13 let sum = 0; |
14 for (var i = 0; i < 10; i++) { | 14 for (var i = 0; i < 10; i++) { |
15 { | 15 { |
(...skipping 15 matching lines...) Expand all Loading... |
31 assertEquals(45, r.pop()); | 31 assertEquals(45, r.pop()); |
32 for (var i = 9; i >= 0; i--) { | 32 for (var i = 9; i >= 0; i--) { |
33 assertEquals(i, r.pop()()); | 33 assertEquals(i, r.pop()()); |
34 } | 34 } |
35 assertEquals(0, r.length); | 35 assertEquals(0, r.length); |
36 } | 36 } |
37 | 37 |
38 check(); | 38 check(); |
39 check(); | 39 check(); |
40 check(); | 40 check(); |
OLD | NEW |