OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 --deopt-every-n-times=1 |
| 6 |
| 7 function __f_0() { |
| 8 var x = []; |
| 9 x[21] = 1; |
| 10 x[21] + 0; |
| 11 } |
| 12 |
| 13 for (var i = 0; i < 3; i++) __f_0(); |
| 14 %OptimizeFunctionOnNextCall(__f_0); |
| 15 for (var i = 0; i < 10; i++) __f_0(); |
| 16 %OptimizeFunctionOnNextCall(__f_0); |
| 17 __f_0(); |
| 18 %GetScript("foo"); |
OLD | NEW |