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 |
| 6 var N = 10; |
| 7 var keys; |
| 8 |
| 9 |
| 10 function SetupSmiKeys() { |
| 11 keys = new Array(N * 2); |
| 12 for (var i = 0; i < N * 2; i++) { |
| 13 keys[i] = i; |
| 14 } |
| 15 } |
| 16 |
| 17 |
| 18 function SetupStringKeys() { |
| 19 keys = new Array(N * 2); |
| 20 for (var i = 0; i < N * 2; i++) { |
| 21 keys[i] = 's' + i; |
| 22 } |
| 23 } |
| 24 |
| 25 |
| 26 function SetupObjectKeys() { |
| 27 keys = new Array(N * 2); |
| 28 for (var i = 0; i < N * 2; i++) { |
| 29 keys[i] = {}; |
| 30 } |
| 31 } |
OLD | NEW |