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 6var N = 10; 7var keys; 8 9 10function SetupSmiKeys() { 11 keys = new Array(N * 2); 12 for (var i = 0; i < N * 2; i++) { 13 keys[i] = i; 14 } 15} 16 17 18function 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 26function SetupObjectKeys() { 27 keys = new Array(N * 2); 28 for (var i = 0; i < N * 2; i++) { 29 keys[i] = {}; 30 } 31} 32