Lines Matching refs:Array
79 obj = new Array();
83 obj = new Array(0);
87 obj = new Array(2);
91 obj = new Array(1,2,3);
95 obj = new Array(1, "hi", 2, undefined);
173 var a = new Array();
178 // Case: new Array() as allocation site, smi->double
187 var a = new Array();
192 // Case: new Array() as allocation site, smi->fast
201 var a = new Array(3);
206 // Case: new Array(length) as allocation site
223 var a = new Array(3);
228 // Case: new Array(<length>) as allocation site, smi->fast
237 var a = new Array(1, 2, 3);
250 var a = new Array(4, 5, 6);
262 // Case: array constructor calls with out of date feedback.
263 // The boilerplate should incorporate all feedback, but the input array
270 : new Array(1, 2, 3);
289 var a = new Array(len);
319 var realmBArray = Realm.eval(realmB, "Array");
320 instanceof_check(Array);
324 // Since instanceof_check(Array) was first called with the current context
325 // Array function, it went from (uninit->Array) then (Array->megamorphic).
328 // that state "Array" implies an AllocationSite is present, and code is
331 instanceof_check2(Array);
336 // the call site not being monomorphic to Array.
337 instanceof_check(Array);
347 instanceof_check(Array);
348 instanceof_check(Array);
350 instanceof_check(Array);
398 // Make sure object literals with array fields benefit from the type feedback
404 array: [1,2,3],
411 assertKind(elements_kind.fast_smi_only, obj.array);
412 obj.array[1] = 3.5;
413 assertKind(elements_kind.fast_double, obj.array);
415 assertKind(elements_kind.fast_double, obj.array);
419 array: [[1],[2],[3]],
426 assertKind(elements_kind.fast, obj.array);
427 assertKind(elements_kind.fast_smi_only, obj.array[1]);
428 obj.array[1][0] = 3.5;
429 assertKind(elements_kind.fast_double, obj.array[1]);
431 assertKind(elements_kind.fast_double, obj.array[1]);
436 assertKind(elements_kind.fast_double, obj.array[1]);