Home | History | Annotate | Download | only in heap

Lines Matching refs:Array

23 #include "src/heap/array-buffer-tracker-inl.h"
757 // If GC happens while adding a stack trace to the weak fixed array,
1114 void Heap::MoveElements(FixedArray* array, int dst_index, int src_index,
1118 DCHECK(array->map() != fixed_cow_array_map());
1119 Object** dst_objects = array->data_start() + dst_index;
1120 MemMove(dst_objects, array->data_start() + src_index, len * kPointerSize);
1121 FIXED_ARRAY_ELEMENTS_WRITE_BARRIER(this, array, dst_index, len);
2250 // Allocate the empty array.
2281 // Allocate the empty descriptor array.
2462 if (!AllocateEmptyFixedTypedArray(kExternal##Type##Array).To(&obj)) \
2549 TransitionArray* array = TransitionArray::cast(raw_array);
2550 array->set_length(capacity);
2551 MemsetPointer(array->data_start(), undefined_value(), capacity);
2553 // add the transition array to the list of encountered_transition_arrays.
2555 array->set_next_link(encountered_transition_arrays(),
2557 set_encountered_transition_arrays(array);
2559 array->set_next_link(undefined_value(), SKIP_WRITE_BARRIER);
2561 return array;
2782 // Microtask queue uses the empty fixed array as a sentinel for "empty".
3001 case kExternal##Type##Array: \
3051 v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true);
3073 v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true);
3075 // Bytecode array is pretenured, so constant pool array should be to.
3187 // Calculate location of new array start.
3215 // Initialize header of the trimmed array. Since left trimming is only
3266 // header of the trimmed array.
3271 // Calculate location of new array end.
3296 // Initialize header of the trimmed array. We are storing the new length
3304 // Notify the heap profiler of change in object layout. The array may not be
3336 case kExternal##Type##Array: \
3515 // fixed array (e.g. Heap::empty_fixed_array()). Currently, the object
3533 // In case of Array subclassing the |map| could already be transitioned
3960 v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true);
3991 FixedArray* array = FixedArray::cast(result);
3992 array->set_length(length);
3993 MemsetPointer(array->data_start(), filler, length);
3994 return array;
4035 v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true);
4264 // code that adds objects to global data structures, e.g. for array buffers.
5604 // Set up the special root array entries containing the stack limits.
5848 WeakFixedArray* array = WeakFixedArray::cast(object);
5849 array->Compact<WeakFixedArray::NullCallback>();
5861 WeakFixedArray* array = WeakFixedArray::cast(prototype_users);
5862 array->Compact<JSObject::PrototypeRegistryCompactionCallback>();
5873 Handle<ArrayList> array(retained_maps(), isolate());
5874 if (array->IsFull()) {
5875 CompactRetainedMaps(*array);
5877 array = ArrayList::Add(
5878 array, cell, handle(Smi::FromInt(FLAG_retain_maps_for_n_gc), isolate()),
5880 if (*array != retained_maps()) {
5881 set_retained_maps(*array);
5891 // This loop compacts the array by removing cleared weak cells.