Home | History | Annotate | Download | only in src

Lines Matching refs:elements

1561         // Subsequent elements in the list.
1587 // Terminate the list if there is one or more elements.
2950 // Don't use Smi-only elements optimizations for objects with the neander
2952 // bottleneck to trap the Smi-only -> fast elements transition, and there
2961 Object* elements;
2963 if (!maybe_elements->ToObject(&elements)) return false;
2965 FixedArray::cast(elements)->set(0, Smi::FromInt(0));
2966 JSObject::cast(obj)->set_elements(FixedArray::cast(elements));
4465 // to a number (e.g. Smi::FromInt(0)) and the elements initialized to a
4606 // Possibly alter the mode, since we found an updated elements kind
4760 FixedArrayBase* elements,
4768 array->set_elements(elements);
4931 FixedArrayBase* elements = FixedArrayBase::cast(source->elements());
4933 // Update elements if necessary.
4934 if (elements->length() > 0) {
4937 if (elements->map() == fixed_cow_array_map()) {
4938 maybe_elem = FixedArray::cast(elements);
4940 maybe_elem = CopyFixedDoubleArray(FixedDoubleArray::cast(elements));
4942 maybe_elem = CopyFixedArray(FixedArray::cast(elements));
5040 FixedArrayBase* elements = FixedArrayBase::cast(source->elements());
5042 // Update elements if necessary.
5043 if (elements->length() > 0) {
5046 if (elements->map() == fixed_cow_array_map()) {
5047 maybe_elem = FixedArray::cast(elements);
5049 maybe_elem = CopyFixedDoubleArray(FixedDoubleArray::cast(elements));
5051 maybe_elem = CopyFixedArray(FixedArray::cast(elements));
5644 FixedDoubleArray* elements =
5647 elements->set_map_no_write_barrier(fixed_double_array_map());
5648 elements->set_length(length);
5649 return elements;
5661 FixedDoubleArray* elements =
5665 elements->set_the_hole(i);
5668 elements->set_map_no_write_barrier(fixed_double_array_map());
5669 elements->set_length(length);
5670 return elements;