Lines Matching refs:heap
180 static bool MustRecordSlots(Heap* heap) { in MustRecordSlots() argument
181 return heap->gc_state() == Heap::MARK_COMPACT && in MustRecordSlots()
182 heap->mark_compact_collector()->is_compacting(); in MustRecordSlots()
191 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer) { in VisitWeakList() argument
192 Object* undefined = heap->undefined_value(); in VisitWeakList()
195 MarkCompactCollector* collector = heap->mark_compact_collector(); in VisitWeakList()
196 bool record_slots = MustRecordSlots(heap); in VisitWeakList()
222 WeakListVisitor<T>::VisitLiveObject(heap, tail, retainer); in VisitWeakList()
224 WeakListVisitor<T>::VisitPhantomObject(heap, candidate); in VisitWeakList()
240 static void ClearWeakList(Heap* heap, Object* list) { in ClearWeakList() argument
241 Object* undefined = heap->undefined_value(); in ClearWeakList()
298 static void VisitLiveObject(Heap* heap, Context* context, in VisitLiveObject()
301 DoWeakList<JSFunction>(heap, context, retainer, in VisitLiveObject()
303 DoWeakList<Code>(heap, context, retainer, Context::OPTIMIZED_CODE_LIST); in VisitLiveObject()
304 DoWeakList<Code>(heap, context, retainer, Context::DEOPTIMIZED_CODE_LIST); in VisitLiveObject()
308 static void DoWeakList(Heap* heap, Context* context, in DoWeakList()
311 Object* list_head = VisitWeakList<T>(heap, context->get(index), retainer); in DoWeakList()
316 if (MustRecordSlots(heap)) { in DoWeakList()
320 heap->mark_compact_collector()->RecordSlot(head_slot, head_slot, in DoWeakList()
325 static void VisitPhantomObject(Heap* heap, Context* context) { in VisitPhantomObject()
326 ClearWeakList<JSFunction>(heap, in VisitPhantomObject()
328 ClearWeakList<Code>(heap, context->get(Context::OPTIMIZED_CODE_LIST)); in VisitPhantomObject()
329 ClearWeakList<Code>(heap, context->get(Context::DEOPTIMIZED_CODE_LIST)); in VisitPhantomObject()
360 static void VisitLiveObject(Heap* heap, JSArrayBuffer* array_buffer, in VisitLiveObject()
363 heap, array_buffer->weak_first_view(), retainer); in VisitLiveObject()
365 if (typed_array_obj != heap->undefined_value() && MustRecordSlots(heap)) { in VisitLiveObject()
368 heap->mark_compact_collector()->RecordSlot(slot, slot, typed_array_obj); in VisitLiveObject()
372 static void VisitPhantomObject(Heap* heap, JSArrayBuffer* phantom) { in VisitPhantomObject()
373 Runtime::FreeArrayBuffer(heap->isolate(), phantom); in VisitPhantomObject()
394 template Object* VisitWeakList<Code>(Heap* heap, Object* list,
398 template Object* VisitWeakList<JSFunction>(Heap* heap, Object* list,
402 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
406 template Object* VisitWeakList<JSArrayBuffer>(Heap* heap, Object* list,
410 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,