Lines Matching refs:slice
107 assertTrue(%HasFastSmiElements(a2.slice()));
108 assertTrue(%HasFastSmiElements(a2.slice(1)));
109 assertTrue(%HasFastSmiElements(a2.slice(1, 2)));
110 assertEquals([1,2,3], a2.slice());
111 assertEquals([2,3], a2.slice(1));
112 assertEquals([2], a2.slice(1,2));
114 assertTrue(%HasFastDoubleElements(a2.slice()));
115 assertTrue(%HasFastDoubleElements(a2.slice(1)));
116 assertTrue(%HasFastDoubleElements(a2.slice(1, 2)));
117 assertEquals([1.1,2,3], a2.slice());
118 assertEquals([2,3], a2.slice(1));
119 assertEquals([2], a2.slice(1,2));
121 assertTrue(%HasFastObjectElements(a2.slice()));
122 assertTrue(%HasFastObjectElements(a2.slice(1)));
123 assertTrue(%HasFastObjectElements(a2.slice(1, 2)));
124 assertEquals([{},2,3], a2.slice());
125 assertEquals([2,3], a2.slice(1));
126 assertEquals([2], a2.slice(1,2));