Lines Matching refs:array
185 JSArray* array;
187 array = JSArray::cast(*args.receiver());
189 // Allocate the JS Array
194 array = JSArray::cast(obj);
197 // 'array' now contains the JSArray we should initialize.
208 array->SetContent(FixedArray::cast(obj));
209 return array;
213 obj = array->Initialize(0);
215 return array->SetElementsLength(args[1]);
220 return array->Initialize(JSArray::kPreallocatedArrayElements);
237 // Set length and elements on the array.
238 array->set_elements(FixedArray::cast(obj));
239 array->set_length(len);
241 return array;
246 JSArray* array = JSArray::cast(*args.receiver());
247 ASSERT(array->HasFastElements());
249 int len = Smi::cast(array->length())->value();
259 FixedArray* elms = FixedArray::cast(array->elements());
270 // Fill out the new array with old elements.
273 array->set_elements(elms);
285 array->set_length(Smi::FromInt(new_length));
291 JSArray* array = JSArray::cast(*args.receiver());
292 ASSERT(array->HasFastElements());
295 int len = Smi::cast(array->length())->value();
299 FixedArray* elms = FixedArray::cast(array->elements());
303 array->set_length(Smi::FromInt(len - 1));
333 JSArray* array = JSArray::cast(*args.receiver());
334 ASSERT(array->HasFastElements());
336 int len = Smi::cast(array->length())->value();
344 FixedArray* elms = FixedArray::cast(array->elements());
359 array->set_length(Smi::FromInt(len - 1));
366 JSArray* array = JSArray::cast(*args.receiver());
367 ASSERT(array->HasFastElements());
369 int len = Smi::cast(array->length())->value();
373 // the array.
380 FixedArray* elms = FixedArray::cast(array->elements());
396 // Fill out the new array with old elements.
403 array->set_elements(elms);
424 array->set_length(Smi::FromInt(new_length));
455 JSArray* array = JSArray::cast(*args.receiver());
456 ASSERT(array->HasFastElements());
458 int len = Smi::cast(array->length())->value();
492 // Calculate the length of result array.
508 FixedArray* elms = FixedArray::cast(array->elements());
516 // Fill newly created array.
533 JSArray* array = JSArray::cast(*args.receiver());
534 ASSERT(array->HasFastElements());
536 int len = Smi::cast(array->length())->value();
577 // Allocate result array.
586 FixedArray* elms = FixedArray::cast(array->elements());
594 // Fill newly created array.
613 // Shrink the array.
630 // Check if array need to grow.
647 array->set_elements(elms);
664 array->set_length(Smi::FromInt(new_length));
1226 // Define array of pointers to generators and C builtin functions.
1269 // Log the event and add the code to the builtins array.