| 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: --harmony-destructuring | 5 // Flags: --harmony-destructuring |
| 6 // Flags: --harmony-arrow-functions --no-lazy --allow-natives-syntax | 6 // Flags: --no-lazy --allow-natives-syntax |
| 7 | 7 |
| 8 | 8 |
| 9 var t1 = [1]; | 9 var t1 = [1]; |
| 10 var t2 = [2]; | 10 var t2 = [2]; |
| 11 var t3 = [3]; | 11 var t3 = [3]; |
| 12 var t4 = [4]; | 12 var t4 = [4]; |
| 13 var t5 = [5]; | 13 var t5 = [5]; |
| 14 function g({x = {a:10,b:20}}, | 14 function g({x = {a:10,b:20}}, |
| 15 {y = [1,2,3], | 15 {y = [1,2,3], |
| 16 n = [], | 16 n = [], |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 p = /abc/ }) => { | 32 p = /abc/ }) => { |
| 33 assertSame(10, x.a); | 33 assertSame(10, x.a); |
| 34 assertSame(20, x.b); | 34 assertSame(20, x.b); |
| 35 assertSame(2, y[1]); | 35 assertSame(2, y[1]); |
| 36 assertSame(0, n.length); | 36 assertSame(0, n.length); |
| 37 assertTrue(p.test("abc")); | 37 assertTrue(p.test("abc")); |
| 38 }; | 38 }; |
| 39 h({},{}); | 39 h({},{}); |
| 40 %OptimizeFunctionOnNextCall(h); | 40 %OptimizeFunctionOnNextCall(h); |
| 41 h({},{}); | 41 h({},{}); |
| OLD | NEW |