Lines Matching defs:object
21 #include "src/heap/code-object-registry.h"
239 bool Heap::InYoungGeneration(Object object) {
240 DCHECK(!HasWeakHeapObjectTag(object));
241 return object.IsHeapObject() && InYoungGeneration(HeapObject::cast(object));
245 bool Heap::InYoungGeneration(MaybeObject object) {
247 return object->GetHeapObject(&heap_object) && InYoungGeneration(heap_object);
257 // GC or the object is in to-space.
259 // If the object is in the young generation, then it's not in RO_SPACE so
269 bool Heap::InFromPage(Object object) {
270 DCHECK(!HasWeakHeapObjectTag(object));
271 return object.IsHeapObject() && InFromPage(HeapObject::cast(object));
275 bool Heap::InFromPage(MaybeObject object) {
277 return object->GetHeapObject(&heap_object) && InFromPage(heap_object);
286 bool Heap::InToPage(Object object) {
287 DCHECK(!HasWeakHeapObjectTag(object));
288 return object.IsHeapObject() && InToPage(HeapObject::cast(object));
292 bool Heap::InToPage(MaybeObject object) {
294 return object->GetHeapObject(&heap_object) && InToPage(heap_object);
302 bool Heap::InOldSpace(Object object) {
304 return object.IsHeapObject() &&
305 third_party_heap::Heap::InOldSpace(object.ptr());
307 return old_space_->Contains(object);
338 AllocationMemento Heap::FindAllocationMemento(Map map, HeapObject object) {
339 Address object_address = object.address();
340 Address memento_address = object_address + object.SizeFromMap(map);
382 // Either the object is the last object in the new space, or there is
383 // another object of at least word size (the header map word) following
399 void Heap::UpdateAllocationSite(Map map, HeapObject object,
403 BasicMemoryChunk* chunk = BasicMemoryChunk::FromHeapObject(object);
414 FindAllocationMemento<kForGC>(map, object);
424 bool Heap::IsPendingAllocationInternal(HeapObject object) {
428 return tp_heap_->IsPendingAllocation(object);
431 BasicMemoryChunk* chunk = BasicMemoryChunk::FromHeapObject(object);
435 Address addr = object.address();
476 bool Heap::IsPendingAllocation(HeapObject object) {
477 bool result = IsPendingAllocationInternal(object);
479 StdoutStream{} << "Pending allocation: " << std::hex << "0x" << object.ptr()
485 bool Heap::IsPendingAllocation(Object object) {
486 return object.IsHeapObject() && IsPendingAllocation(HeapObject::cast(object));