Lines Matching defs:array
36 #include "src/heap/array-buffer-sweeper.h"
852 Handle<WeakArrayList> array(retaining_path_targets(), isolate());
853 int index = array->length();
854 array = WeakArrayList::AddToEnd(isolate(), array,
856 set_retaining_path_targets(*array);
857 DCHECK_EQ(array->length(), index + 1);
3529 // Calculate location of new array start.
3554 // Initialize header of the trimmed array. Since left trimming is only
3636 // Calculate location of new array end.
3676 // Initialize header of the trimmed array. We are storing the new length
3682 // array may not be moved during GC, and size has to be adjusted nevertheless.
6253 Handle<WeakArrayList> array,
6255 if (array->length() == 0) {
6256 return array;
6258 int new_length = array->CountLiveWeakReferences();
6259 if (new_length == array->length()) {
6260 return array;
6269 // fill in the new array.
6271 for (int i = 0; i < array->length(); i++) {
6272 MaybeObject element = array->Get(i);
6297 Handle<WeakArrayList> array(
6299 DCHECK(InOldSpace(*array) ||
6300 *array == ReadOnlyRoots(this).empty_weak_array_list());
6302 array, this, JSObject::PrototypeRegistryCompactionCallback,
6319 Handle<WeakArrayList> array(WeakArrayList::cast(context->retained_maps()),
6321 if (array->IsFull()) {
6322 CompactRetainedMaps(*array);
6324 array =
6325 WeakArrayList::AddToEnd(isolate(), array, MaybeObjectHandle::Weak(map));
6326 array = WeakArrayList::AddToEnd(
6327 isolate(), array,
6329 if (*array != context->retained_maps()) {
6330 context->set_retained_maps(*array);
6338 // This loop compacts the array by removing cleared weak cells.
7019 // The detached_contexts() array has two entries per detached context.
7477 // heap as a strong root array, saves that entry in StrongRootsEntry*, and