Lines Matching refs:elements
155 // Deep copy local elements.
156 // Pixel elements cannot be created using an object literal.
160 FixedArray* elements = FixedArray::cast(copy->elements());
161 for (int i = 0; i < elements->length(); i++) {
162 Object* value = elements->get(i);
167 elements->set(i, result);
314 Handle<FixedArray> elements) {
320 Handle<Object> copied_elements = Factory::CopyFixedArray(elements);
335 // Set the elements.
344 Handle<FixedArray> elements = CompileTimeValue::GetElements(array);
347 return CreateObjectLiteralBoilerplate(literals, elements);
349 return CreateArrayLiteralBoilerplate(literals, elements);
378 // Takes a FixedArray of elements containing the literal elements of
379 // the array literal and produces JSArray with those elements.
387 CONVERT_ARG_CHECKED(FixedArray, elements, 2);
389 Handle<Object> object = CreateArrayLiteralBoilerplate(literals, elements);
441 CONVERT_ARG_CHECKED(FixedArray, elements, 2);
446 boilerplate = CreateArrayLiteralBoilerplate(literals, elements);
460 CONVERT_ARG_CHECKED(FixedArray, elements, 2);
465 boilerplate = CreateArrayLiteralBoilerplate(literals, elements);
1521 void EnsureCapacity(int elements) {
1523 int required_length = part_count_ + elements;
1873 FixedArray* match_info = FixedArray::cast(last_match_info->elements());
1941 // all components to use two elements when encoded as two smis.
1955 FixedArray::cast(last_match_info_handle->elements());
2682 FixedArray* elements = FixedArray::cast(regexp_info->elements());
2683 start = Smi::cast(elements->get(RegExpImpl::kFirstCapture))->value();
2684 end = Smi::cast(elements->get(RegExpImpl::kFirstCapture + 1))->value();
2696 Handle<FixedArray> elements = Factory::NewFixedArray(matches);
2700 elements->set(i, *Factory::NewSubString(subject, from, to));
2702 Handle<JSArray> result = Factory::NewJSArrayWithElements(elements);
3298 // Only JS objects can have elements.
4334 FixedArray* fixed_array = FixedArray::cast(array->elements());
4875 // Allocate the elements if needed.
5512 FixedArray* output_array = FixedArray::cast(output->elements());
5709 FixedArray* elements = FixedArray::cast(array->elements());
5711 if (elements->get(i) == element) return Heap::false_value();
5721 * The backend storage can be a fixed array for fast elements case,
5767 // Limit on the accepted indices. Elements with indices larger than the
5783 ExternalArrayClass::cast(receiver->elements()));
5818 * A helper function that visits elements of a JSObject. Only elements
5824 * It returns the number of visisted elements.
5833 Handle<FixedArray> elements(FixedArray::cast(receiver->elements()));
5834 uint32_t len = elements->length();
5840 Handle<Object> e(elements->get(j));
5851 Handle<PixelArray> pixels(PixelArray::cast(receiver->elements()));
5936 * A helper function that visits elements of an Array object, and elements
5939 * Elements on prototypes are visited first, and only elements whose indices
5945 * The returned number of elements is an upper bound on the actual number
5946 * of elements added. If the same element occurs in more than one object
5992 * elements. If an argument is not an Array object, the function
6014 // Total elements of array and its prototype chain can be more than
6016 // the array length number of elements. We use the length as an estimate
6017 // for the actual number of elements added.
6052 // Pass 1: estimate the number of elements of the result
6053 // (it could be more than real numbers if prototype has elements).
6079 // If estimated number of elements is more than half of length, a
6086 // The backing storage array must have non-existing elements to
6127 // Moves all own elements of an object, that are below a limit, to positions
6131 // Returns the number of non-undefined elements collected.
6145 to->SetContent(FixedArray::cast(from->elements()));
6153 // How many elements does this array have?
6157 HeapObject* elements = array->elements();
6158 if (elements->IsDictionary()) {
6159 return Smi::FromInt(NumberDictionary::cast(elements)->NumberOfElements());
6167 // might have elements. Can either return keys or intervals. Keys can have
6174 if (array->elements()->IsDictionary()) {
6192 uint32_t actual_length = static_cast<uint32_t>(array->elements()->length());
8148 FixedArray* elements = FixedArray::cast(result->elements());
8149 if (cursor + 2 < elements->length()) {
8150 elements->set(cursor++, recv);
8151 elements->set(cursor++, fun);
8152 elements->set(cursor++, offset);