Home | History | Annotate | Download | only in heap

Lines Matching refs:Heap

5 #include "src/heap/objects-visiting.h"
7 #include "src/heap/heap-inl.h"
8 #include "src/heap/mark-compact-inl.h"
9 #include "src/heap/objects-visiting-inl.h"
222 static bool MustRecordSlots(Heap* heap) {
223 return heap->gc_state() == Heap::MARK_COMPACT &&
224 heap->mark_compact_collector()->is_compacting();
233 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer) {
234 Object* undefined = heap->undefined_value();
237 MarkCompactCollector* collector = heap->mark_compact_collector();
238 bool record_slots = MustRecordSlots(heap);
260 DCHECK(!retained->IsUndefined(heap->isolate()));
265 WeakListVisitor<T>::VisitLiveObject(heap, tail, retainer);
268 WeakListVisitor<T>::VisitPhantomObject(heap, candidate);
282 static void ClearWeakList(Heap* heap, Object* list) {
283 Object* undefined = heap->undefined_value();
304 static void VisitLiveObject(Heap*, JSFunction*, WeakObjectRetainer*) {}
306 static void VisitPhantomObject(Heap*, JSFunction*) {}
320 static void VisitLiveObject(Heap*, Code*, WeakObjectRetainer*) {}
322 static void VisitPhantomObject(Heap*, Code*) {}
340 static void VisitLiveObject(Heap* heap, Context* context,
343 DoWeakList<JSFunction>(heap, context, retainer,
346 if (heap->gc_state() == Heap::MARK_COMPACT) {
348 MarkCompactCollector* collector = heap->mark_compact_collector();
357 DoWeakList<Code>(heap, context, retainer, Context::OPTIMIZED_CODE_LIST);
358 DoWeakList<Code>(heap, context, retainer, Context::DEOPTIMIZED_CODE_LIST);
363 static void DoWeakList(Heap* heap, Context* context,
366 Object* list_head = VisitWeakList<T>(heap, context->get(index), retainer);
371 if (MustRecordSlots(heap)) {
375 heap->mark_compact_collector()->RecordSlot(context, head_slot, list_head);
379 static void VisitPhantomObject(Heap* heap, Context* context) {
380 ClearWeakList<JSFunction>(heap,
382 ClearWeakList<Code>(heap, context->get(Context::OPTIMIZED_CODE_LIST));
383 ClearWeakList<Code>(heap, context->get(Context::DEOPTIMIZED_CODE_LIST));
398 static void VisitLiveObject(Heap*, AllocationSite*, WeakObjectRetainer*) {}
400 static void VisitPhantomObject(Heap*, AllocationSite*) {}
404 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
407 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,