OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Flags: --allow-natives-syntax |
| 6 |
| 7 function h(a,b){ |
| 8 for(var i=0; i<a.length; i++) {h(a[i],b[i]); } |
| 9 } |
| 10 |
| 11 function g() { |
| 12 h(arguments.length, 2); |
| 13 } |
| 14 |
| 15 function f() { |
| 16 return g(1, 2); |
| 17 } |
| 18 |
| 19 b = [1,,]; |
| 20 b[1] = 3.5; |
| 21 |
| 22 h(b, [1073741823, 2147483648, -12]); |
| 23 |
| 24 f(); |
| 25 f(); |
| 26 %OptimizeFunctionOnNextCall(f); |
| 27 f(); |
OLD | NEW |