Lines Matching defs:elements
130 // |length| elements, followed by properties as key/value pairs
628 object->HasFastProperties(isolate_) && object->elements().length() == 0;
696 // serialization based on elements kind. A more principled heuristic could
697 // count the elements, but would need to take care to note which indices
710 // structure of the elements changing.
714 FixedArray elements = FixedArray::cast(array->elements());
716 WriteSmi(Smi::cast(elements.get(cage_base, i)));
721 // is empty. No elements to encode in this case anyhow.
724 FixedDoubleArray elements = FixedDoubleArray::cast(array->elements());
727 WriteDouble(elements.get_scalar(i));
740 FixedArray::cast(array->elements()).get(cage_base, i), isolate_);
749 // If there are elements remaining, serialize them slowly.
751 // Serializing the array's elements can have arbitrary side effects, so we
752 // cannot rely on still having fast elements, even if it did to begin
759 // sparse format, but we can mark the elements as absent.
1735 Handle<FixedArray> elements(FixedArray::cast(array->elements()), isolate_);
1736 auto elements_length = static_cast<uint32_t>(elements->length());
1755 elements->set(i, *element);