Lines Matching defs:array
24 #include "src/objects/js-array-buffer-inl.h"
25 #include "src/objects/js-array-inl.h"
124 // Beginning of a sparse JS array. length:uint32_t
127 // End of a sparse JS array. numProperties:uint32_t length:uint32_t
129 // Beginning of a dense JS array. length:uint32_t
132 // End of a dense JS array. numProperties:uint32_t length:uint32_t
160 // View into an array buffer.
168 // Shared array buffer. transferID:uint32_t
451 // array's buffer here.
688 Maybe<bool> ValueSerializer::WriteJSArray(Handle<JSArray> array) {
691 bool valid_length = array->length().ToArrayLength(&length);
701 array->HasFastElements(cage_base) && !array->HasHoleyElements(cage_base);
711 switch (array->GetElementsKind(cage_base)) {
714 FixedArray elements = FixedArray::cast(array->elements());
720 // Elements are empty_fixed_array, not a FixedDoubleArray, if the array
724 FixedDoubleArray elements = FixedDoubleArray::cast(array->elements());
732 Handle<Object> old_length(array->length(cage_base), isolate_);
734 if (array->length(cage_base) != *old_length ||
735 array->GetElementsKind(cage_base) != PACKED_ELEMENTS) {
740 FixedArray::cast(array->elements()).get(cage_base, i), isolate_);
751 // Serializing the array's elements can have arbitrary side effects, so we
755 LookupIterator it(isolate_, array, i, array, LookupIterator::OWN);
757 // This can happen in the case where an array that was originally dense
770 if (!KeyAccumulator::GetKeys(array, KeyCollectionMode::kOwnOnly,
778 if (!WriteJSObjectPropertiesSlow(array, keys).To(&properties_written)) {
789 if (!KeyAccumulator::GetKeys(array, KeyCollectionMode::kOwnOnly,
792 !WriteJSObjectPropertiesSlow(array, keys).To(&properties_written)) {
1695 Handle<JSArray> array =
1697 MAYBE_RETURN(JSArray::SetLength(array, length), MaybeHandle<JSArray>());
1698 AddObjectWithID(id, array);
1703 if (!ReadJSObjectProperties(array, SerializationTag::kEndSparseJSArray, false)
1712 return scope.CloseAndEscape(array);
1719 // We shouldn't permit an array larger than the biggest we can request from
1731 Handle<JSArray> array = isolate_->factory()->NewJSArray(
1733 AddObjectWithID(id, array);
1735 Handle<FixedArray> elements(FixedArray::cast(array->elements()), isolate_);
1761 if (!ReadJSObjectProperties(array, SerializationTag::kEndDenseJSArray, false)
1770 return scope.CloseAndEscape(array);