OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 // Make the Object prototype have dictionary properties. | |
8 for (var i = 0; i < 2000; i++) { | |
9 Object.prototype['X'+i] = true; | |
10 } | |
11 | |
12 function boom(a1) { | |
13 return a1[0]; | |
14 } | |
15 | |
16 var a = new Array(1); | |
17 a[0] = 0.1; | |
18 boom(a); | |
19 boom(a); | |
20 %OptimizeFunctionOnNextCall(boom); | |
21 boom(a); | |
OLD | NEW |