Lines Matching refs:a4
264 var a4 = [1,2,3];
265 assertEquals(3, a4.pop());
266 assertTrue(%HasFastSmiElements(a4));
267 a4 = [1.1,2,3];
268 assertEquals(3, a4.pop());
269 assertTrue(%HasFastDoubleElements(a4));
270 a4 = [{},2,3];
271 assertEquals(3, a4.pop());
272 assertTrue(%HasFastObjectElements(a4));
275 var a4 = [1,2,3];
276 assertEquals(1, a4.shift());
277 assertTrue(%HasFastSmiElements(a4));
278 a4 = [1.1,2,3];
279 assertEquals(1.1, a4.shift());
280 assertTrue(%HasFastDoubleElements(a4));
281 a4 = [{},2,3];
282 assertEquals({}, a4.shift());
283 assertTrue(%HasFastObjectElements(a4));
286 var a4 = [1,2,3];
287 a4.unshift(1);
288 assertTrue(%HasFastSmiElements(a4));
289 assertEquals([1,1,2,3], a4);
290 a4 = [1,2,3];
291 a4.unshift(1.1);
293 // assertTrue(%HasFastDoubleElements(a4));
294 assertTrue(%HasFastObjectElements(a4));
295 assertEquals([1.1,1,2,3], a4);
296 a4 = [1.1,2,3];
297 a4.unshift(1);
298 // assertTrue(%HasFastDoubleElements(a4));
299 assertTrue(%HasFastObjectElements(a4));
300 assertEquals([1,1.1,2,3], a4);
301 a4 = [{},2,3];
302 a4.unshift(1);
303 assertTrue(%HasFastObjectElements(a4));
304 assertEquals([1,{},2,3], a4);
305 a4 = [{},2,3];
306 a4.unshift(1.1);
307 assertTrue(%HasFastObjectElements(a4));
308 assertEquals([1.1,{},2,3], a4);