Lines Matching refs:object

88   static V8_INLINE T* Cast(HeapObject* object) {  in Cast()  argument
89 return T::cast(object); in Cast()
92 bool ShouldVisit(HeapObject* object) { in ShouldVisit() argument
93 return marking_state_.GreyToBlack(object); in ShouldVisit()
128 Object* object = base::AsAtomicPointer::Relaxed_Load(slot); in VisitPointers() local
129 DCHECK(!HasWeakHeapObjectTag(object)); in VisitPointers()
130 if (object->IsHeapObject()) { in VisitPointers()
131 ProcessStrongHeapObject(host, slot, HeapObject::cast(object)); in VisitPointers()
139 MaybeObject* object = base::AsAtomicPointer::Relaxed_Load(slot); in VisitPointers() local
141 if (object->ToStrongHeapObject(&heap_object)) { in VisitPointers()
147 } else if (object->ToWeakHeapObject(&heap_object)) { in VisitPointers()
157 Object* object = snapshot.value(i); in VisitPointersInSnapshot() local
158 DCHECK(!HasWeakHeapObjectTag(object)); in VisitPointersInSnapshot()
159 if (!object->IsHeapObject()) continue; in VisitPointersInSnapshot()
160 HeapObject* heap_object = HeapObject::cast(object); in VisitPointersInSnapshot()
170 int VisitJSObject(Map* map, JSObject* object) { in VisitJSObject() argument
171 return VisitJSObjectSubclass(map, object); in VisitJSObject()
174 int VisitJSObjectFast(Map* map, JSObject* object) { in VisitJSObjectFast() argument
175 return VisitJSObjectSubclass(map, object); in VisitJSObjectFast()
178 int VisitJSArrayBuffer(Map* map, JSArrayBuffer* object) { in VisitJSArrayBuffer() argument
179 return VisitJSObjectSubclass(map, object); in VisitJSArrayBuffer()
182 int VisitWasmInstanceObject(Map* map, WasmInstanceObject* object) { in VisitWasmInstanceObject() argument
183 return VisitJSObjectSubclass(map, object); in VisitWasmInstanceObject()
186 int VisitJSApiObject(Map* map, JSObject* object) { in VisitJSApiObject() argument
187 if (marking_state_.IsGrey(object)) { in VisitJSApiObject()
189 bailout_.Push(object); in VisitJSApiObject()
194 int VisitJSFunction(Map* map, JSFunction* object) { in VisitJSFunction() argument
195 int size = JSFunction::BodyDescriptorWeak::SizeOf(map, object); in VisitJSFunction()
199 const SlotSnapshot& snapshot = MakeSlotSnapshotWeak(map, object, used_size); in VisitJSFunction()
200 if (!ShouldVisit(object)) return 0; in VisitJSFunction()
201 VisitPointersInSnapshot(object, snapshot); in VisitJSFunction()
209 int VisitConsString(Map* map, ConsString* object) { in VisitConsString() argument
210 int size = ConsString::BodyDescriptor::SizeOf(map, object); in VisitConsString()
211 const SlotSnapshot& snapshot = MakeSlotSnapshot(map, object, size); in VisitConsString()
212 if (!ShouldVisit(object)) return 0; in VisitConsString()
213 VisitPointersInSnapshot(object, snapshot); in VisitConsString()
217 int VisitSlicedString(Map* map, SlicedString* object) { in VisitSlicedString() argument
218 int size = SlicedString::BodyDescriptor::SizeOf(map, object); in VisitSlicedString()
219 const SlotSnapshot& snapshot = MakeSlotSnapshot(map, object, size); in VisitSlicedString()
220 if (!ShouldVisit(object)) return 0; in VisitSlicedString()
221 VisitPointersInSnapshot(object, snapshot); in VisitSlicedString()
225 int VisitThinString(Map* map, ThinString* object) { in VisitThinString() argument
226 int size = ThinString::BodyDescriptor::SizeOf(map, object); in VisitThinString()
227 const SlotSnapshot& snapshot = MakeSlotSnapshot(map, object, size); in VisitThinString()
228 if (!ShouldVisit(object)) return 0; in VisitThinString()
229 VisitPointersInSnapshot(object, snapshot); in VisitThinString()
237 int VisitSeqOneByteString(Map* map, SeqOneByteString* object) { in VisitSeqOneByteString() argument
238 int size = SeqOneByteString::SizeFor(object->synchronized_length()); in VisitSeqOneByteString()
239 if (!ShouldVisit(object)) return 0; in VisitSeqOneByteString()
240 VisitMapPointer(object, object->map_slot()); in VisitSeqOneByteString()
244 int VisitSeqTwoByteString(Map* map, SeqTwoByteString* object) { in VisitSeqTwoByteString() argument
245 int size = SeqTwoByteString::SizeFor(object->synchronized_length()); in VisitSeqTwoByteString()
246 if (!ShouldVisit(object)) return 0; in VisitSeqTwoByteString()
247 VisitMapPointer(object, object->map_slot()); in VisitSeqTwoByteString()
255 int VisitFixedArray(Map* map, FixedArray* object) { in VisitFixedArray() argument
256 return VisitLeftTrimmableArray(map, object); in VisitFixedArray()
259 int VisitFixedDoubleArray(Map* map, FixedDoubleArray* object) { in VisitFixedDoubleArray() argument
260 return VisitLeftTrimmableArray(map, object); in VisitFixedDoubleArray()
267 int VisitCode(Map* map, Code* object) { in VisitCode() argument
268 bailout_.Push(object); in VisitCode()
276 int VisitBytecodeArray(Map* map, BytecodeArray* object) { in VisitBytecodeArray() argument
277 if (!ShouldVisit(object)) return 0; in VisitBytecodeArray()
278 int size = BytecodeArray::BodyDescriptorWeak::SizeOf(map, object); in VisitBytecodeArray()
279 VisitMapPointer(object, object->map_slot()); in VisitBytecodeArray()
280 BytecodeArray::BodyDescriptorWeak::IterateBody(map, object, size, this); in VisitBytecodeArray()
281 object->MakeOlder(); in VisitBytecodeArray()
285 int VisitAllocationSite(Map* map, AllocationSite* object) { in VisitAllocationSite() argument
286 if (!ShouldVisit(object)) return 0; in VisitAllocationSite()
287 int size = AllocationSite::BodyDescriptorWeak::SizeOf(map, object); in VisitAllocationSite()
288 VisitMapPointer(object, object->map_slot()); in VisitAllocationSite()
289 AllocationSite::BodyDescriptorWeak::IterateBody(map, object, size, this); in VisitAllocationSite()
293 int VisitCodeDataContainer(Map* map, CodeDataContainer* object) { in VisitCodeDataContainer() argument
294 if (!ShouldVisit(object)) return 0; in VisitCodeDataContainer()
295 int size = CodeDataContainer::BodyDescriptorWeak::SizeOf(map, object); in VisitCodeDataContainer()
296 VisitMapPointer(object, object->map_slot()); in VisitCodeDataContainer()
297 CodeDataContainer::BodyDescriptorWeak::IterateBody(map, object, size, this); in VisitCodeDataContainer()
318 int VisitNativeContext(Map* map, Context* object) { in VisitNativeContext() argument
319 if (!ShouldVisit(object)) return 0; in VisitNativeContext()
320 int size = Context::BodyDescriptorWeak::SizeOf(map, object); in VisitNativeContext()
321 VisitMapPointer(object, object->map_slot()); in VisitNativeContext()
322 Context::BodyDescriptorWeak::IterateBody(map, object, size, this); in VisitNativeContext()
335 int VisitJSWeakCollection(Map* map, JSWeakCollection* object) { in VisitJSWeakCollection() argument
336 return VisitJSObjectSubclass(map, object); in VisitJSWeakCollection()
391 void MarkObject(HeapObject* object) { in MarkObject() argument
396 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); in MarkObject()
399 if (marking_state_.WhiteToGrey(object)) { in MarkObject()
400 shared_.Push(object); in MarkObject()
416 Object* object = reinterpret_cast<Object*>( in VisitPointers() local
418 slot_snapshot_->add(p, object); in VisitPointers()
434 int VisitJSObjectSubclass(Map* map, T* object) { in VisitJSObjectSubclass() argument
435 int size = T::BodyDescriptor::SizeOf(map, object); in VisitJSObjectSubclass()
439 const SlotSnapshot& snapshot = MakeSlotSnapshot(map, object, used_size); in VisitJSObjectSubclass()
440 if (!ShouldVisit(object)) return 0; in VisitJSObjectSubclass()
441 VisitPointersInSnapshot(object, snapshot); in VisitJSObjectSubclass()
446 int VisitLeftTrimmableArray(Map* map, T* object) { in VisitLeftTrimmableArray() argument
449 Object* length = object->unchecked_synchronized_length(); in VisitLeftTrimmableArray()
450 if (!ShouldVisit(object)) return 0; in VisitLeftTrimmableArray()
455 VisitMapPointer(object, object->map_slot()); in VisitLeftTrimmableArray()
456 T::BodyDescriptor::IterateBody(map, object, size, this); in VisitLeftTrimmableArray()
461 const SlotSnapshot& MakeSlotSnapshot(Map* map, T* object, int size) { in MakeSlotSnapshot() argument
463 visitor.VisitPointer(object, in MakeSlotSnapshot()
464 reinterpret_cast<Object**>(object->map_slot())); in MakeSlotSnapshot()
465 T::BodyDescriptor::IterateBody(map, object, size, &visitor); in MakeSlotSnapshot()
470 const SlotSnapshot& MakeSlotSnapshotWeak(Map* map, T* object, int size) { in MakeSlotSnapshotWeak() argument
472 visitor.VisitPointer(object, in MakeSlotSnapshotWeak()
473 reinterpret_cast<Object**>(object->map_slot())); in MakeSlotSnapshotWeak()
474 T::BodyDescriptorWeak::IterateBody(map, object, size, &visitor); in MakeSlotSnapshotWeak()
488 ConsString* ConcurrentMarkingVisitor::Cast(HeapObject* object) { in Cast() argument
489 return reinterpret_cast<ConsString*>(object); in Cast()
493 SlicedString* ConcurrentMarkingVisitor::Cast(HeapObject* object) { in Cast() argument
494 return reinterpret_cast<SlicedString*>(object); in Cast()
498 ThinString* ConcurrentMarkingVisitor::Cast(HeapObject* object) { in Cast() argument
499 return reinterpret_cast<ThinString*>(object); in Cast()
503 SeqOneByteString* ConcurrentMarkingVisitor::Cast(HeapObject* object) { in Cast() argument
504 return reinterpret_cast<SeqOneByteString*>(object); in Cast()
508 SeqTwoByteString* ConcurrentMarkingVisitor::Cast(HeapObject* object) { in Cast() argument
509 return reinterpret_cast<SeqTwoByteString*>(object); in Cast()
514 FixedArray* ConcurrentMarkingVisitor::Cast(HeapObject* object) { in Cast() argument
515 return reinterpret_cast<FixedArray*>(object); in Cast()
590 HeapObject* object; in Run() local
591 if (!shared_->Pop(task_id, &object)) { in Run()
598 Address addr = object->address(); in Run()
600 on_hold_->Push(task_id, object); in Run()
602 Map* map = object->synchronized_map(); in Run()
603 current_marked_bytes += visitor.Visit(map, object); in Run()