Lines Matching refs:HeapObject
342 static inline HeapObject* ShortCircuitConsString(Object** p) { in ShortCircuitConsString()
355 HeapObject* object = HeapObject::cast(*p); in ShortCircuitConsString()
374 return HeapObject::cast(first); in ShortCircuitConsString()
380 static inline void IterateBody(Map* map, HeapObject* obj) { in IterateBody()
486 HeapObject* code = Code::GetCodeFromTargetAddress(rinfo->call_address()); in VisitDebugTarget()
493 HeapObject* object = ShortCircuitConsString(p); in INLINE()
502 HeapObject* obj)) { in INLINE()
527 HeapObject* obj = HeapObject::cast(*p); in VisitUnmarkedObjects()
541 static void VisitSpecialized(Map* map, HeapObject* object) { in VisitSpecialized()
544 static void Visit(Map* map, HeapObject* object) { in Visit()
556 static void VisitCode(Map* map, HeapObject* object) { in VisitCode()
657 MapWord map_word = HeapObject::cast(obj)->map_word(); in SafeMap()
691 static void VisitSharedFunctionInfoGeneric(Map* map, HeapObject* object) { in VisitSharedFunctionInfoGeneric()
703 HeapObject* object) { in VisitSharedFunctionInfoAndFlushCode()
714 Map* map, HeapObject* object, bool known_flush_code_candidate) { in VisitSharedFunctionInfoAndFlushCodeGeneric()
742 static void VisitJSFunctionAndFlushCode(Map* map, HeapObject* object) { in VisitJSFunctionAndFlushCode()
785 static void VisitJSFunction(Map* map, HeapObject* object) { in VisitJSFunction()
834 HeapObject* object, in VisitSharedFunctionInfoFields()
849 typedef void (*Callback)(Map* map, HeapObject* object);
987 HeapObject* object = ShortCircuitConsString(p); in MarkObjectByPointer()
1016 if ((*p)->IsHeapObject() && !HeapObject::cast(*p)->IsMarked()) { in VisitPointers()
1046 MapWord first_word = HeapObject::cast(object)->map_word(); in RetainAs()
1056 void MarkCompactCollector::MarkUnmarkedObject(HeapObject* object) { in MarkUnmarkedObject()
1087 *HeapObject::RawField(map, Map::kInstanceDescriptorsOffset))); in MarkMapContents()
1092 Object** start_slot = HeapObject::RawField(map, in MarkMapContents()
1095 Object** end_slot = HeapObject::RawField(map, Map::kPointerFieldsEndOffset); in MarkMapContents()
1125 HeapObject* object = reinterpret_cast<HeapObject*>(contents->get(i)); in MarkDescriptorArray()
1140 for (HeapObject* next_object = iterator.next(); in CreateBackPointers()
1155 static int OverflowObjectSize(HeapObject* obj) { in OverflowObjectSize()
1177 for (HeapObject* object = it->next(); object != NULL; object = it->next()) { in ScanOverflowedObjects()
1191 return (*p)->IsHeapObject() && !HeapObject::cast(*p)->IsMarked(); in IsUnmarkedHeapObject()
1235 if (object->IsHeapObject() && HeapObject::cast(object)->IsMarked()) { in MarkObjectGroups()
1250 MarkObject(HeapObject::cast(*objects[j])); in MarkObjectGroups()
1280 MarkObject(HeapObject::cast(*children[j])); in MarkImplicitRefGroups()
1298 HeapObject* object = marking_stack_.Pop(); in EmptyMarkingStack()
1458 void MarkCompactCollector::UpdateLiveObjectCount(HeapObject* obj) { in UpdateLiveObjectCount()
1495 bool MarkCompactCollector::SafeIsMap(HeapObject* object) { in SafeIsMap()
1514 for (HeapObject* obj = map_iterator.next(); in ClearNonLiveTransitions()
1539 if (HeapObject::cast(prototype)->IsMarked() && in ClearNonLiveTransitions()
1540 HeapObject::cast(cached_map)->IsMarked()) { in ClearNonLiveTransitions()
1590 *HeapObject::RawField(current, Map::kPrototypeOffset) = in ClearNonLiveTransitions()
1651 HeapObject* object, in MCAllocateFromNewSpace()
1673 HeapObject* ignore, in MCAllocateFromOldPointerSpace()
1681 HeapObject* ignore, in MCAllocateFromOldDataSpace()
1689 HeapObject* ignore, in MCAllocateFromCodeSpace()
1697 HeapObject* ignore, in MCAllocateFromMapSpace()
1704 Heap* heap, HeapObject* ignore, int object_size) { in MCAllocateFromCellSpace()
1712 HeapObject* old_object, in EncodeForwardingAddressInNewSpace()
1719 HeapObject::cast(new_object)->address(); in EncodeForwardingAddressInNewSpace()
1727 HeapObject* old_object, in EncodeForwardingAddressInPagedSpace()
1734 HeapObject::cast(new_object)->address(); in EncodeForwardingAddressInPagedSpace()
1746 inline void IgnoreNonLiveObject(HeapObject* object, Isolate* isolate) {} in IgnoreNonLiveObject()
1778 HeapObject* object = HeapObject::FromAddress(current); in EncodeForwardingAddressesInRange()
1791 HeapObject::cast(forwarded)->address()); in EncodeForwardingAddressesInRange()
1882 HeapObject* obj = HeapObject::cast(*p); in VisitPointer()
1887 *p = HeapObject::FromAddress(Memory::Address_at(old_addr)); in VisitPointer()
1933 static void UpdatePointerToNewGen(HeapObject** p) { in UpdatePointerToNewGen()
1946 *p = HeapObject::FromAddress(new_addr); in UpdatePointerToNewGen()
1953 Address old_addr = HeapObject::cast(*p)->address(); in UpdateNewSpaceReferenceInExternalStringTableEntry()
1955 return String::cast(HeapObject::FromAddress(new_addr)); in UpdateNewSpaceReferenceInExternalStringTableEntry()
1959 static bool TryPromoteObject(Heap* heap, HeapObject* object, int object_size) { in TryPromoteObject()
1966 HeapObject* target = HeapObject::cast(result); in TryPromoteObject()
1980 HeapObject* target = HeapObject::cast(result); in TryPromoteObject()
2013 HeapObject* object = HeapObject::FromAddress(current); in SweepNewSpace()
2032 HeapObject::cast(target)->address(), in SweepNewSpace()
2051 HeapObject* object = HeapObject::FromAddress(current); in SweepNewSpace()
2071 for (HeapObject* cell = cell_iterator.next(); in SweepNewSpace()
2128 HeapObject* object; in SweepSpace()
2133 object = HeapObject::FromAddress(current); in SweepSpace()
2297 static int SizeCallback(HeapObject* unused) { in SizeCallback()
2313 reinterpret_cast<Map*>(HeapObject::FromAddress(to_evacuate_start_))) { in MapCompact()
2357 for (HeapObject* obj = it.next(); obj != NULL; obj = it.next()) in UpdateMapPointersInLargeObjectSpace()
2391 HeapObject* old_map = reinterpret_cast<HeapObject*>(*p); in UpdateMapPointer()
2402 static Map* NextMap(MapIterator* it, HeapObject* last, bool live) { in NextMap()
2404 HeapObject* next = it->next(); in NextMap()
2456 static int UpdateMapPointersInObject(Heap* heap, HeapObject* obj) { in UpdateMapPointersInObject()
2484 HeapObject* object; in UpdateMapPointersInRange()
2487 object = HeapObject::FromAddress(current); in UpdateMapPointersInRange()
2498 for (HeapObject* obj = map_to_evacuate_it_.next(); in CheckNoMapsToEvacuate()
2572 int size = (this->*size_func)(HeapObject::FromAddress(current)); in IterateLiveObjectsInRange()
2645 HeapObject* obj = HeapObject::cast(*p); in UpdatePointer()
2660 heap()->lo_space()->Contains(HeapObject::FromAddress(new_addr))); in UpdatePointer()
2688 *p = HeapObject::FromAddress(new_addr); in UpdatePointer()
2735 for (HeapObject* obj = it.next(); obj != NULL; obj = it.next()) { in UpdatePointers()
2754 int MarkCompactCollector::UpdatePointersInNewObject(HeapObject* obj) { in UpdatePointersInNewObject()
2770 obj->set_map(reinterpret_cast<Map*>(HeapObject::FromAddress(forwarded))); in UpdatePointersInNewObject()
2783 int MarkCompactCollector::UpdatePointersInOldObject(HeapObject* obj) { in UpdatePointersInOldObject()
2787 ASSERT(heap()->map_space()->Contains(HeapObject::FromAddress(map_addr))); in UpdatePointersInOldObject()
2791 Map* map = reinterpret_cast<Map*>(HeapObject::FromAddress(map_addr)); in UpdatePointersInOldObject()
2814 Address MarkCompactCollector::GetForwardingAddressInOldSpace(HeapObject* obj) { in GetForwardingAddressInOldSpace()
2909 int MarkCompactCollector::RelocateMapObject(HeapObject* obj) { in RelocateMapObject()
2913 ASSERT(heap()->map_space()->Contains(HeapObject::FromAddress(map_addr))); in RelocateMapObject()
2920 obj->set_map(reinterpret_cast<Map*>(HeapObject::FromAddress(map_addr))); in RelocateMapObject()
2941 static inline int RestoreMap(HeapObject* obj, in RestoreMap()
2950 obj->set_map(Map::cast(HeapObject::FromAddress(map_addr))); in RestoreMap()
2968 int MarkCompactCollector::RelocateOldNonCodeObject(HeapObject* obj, in RelocateOldNonCodeObject()
2994 ASSERT(!HeapObject::FromAddress(new_addr)->IsCode()); in RelocateOldNonCodeObject()
2996 HeapObject* copied_to = HeapObject::FromAddress(new_addr); in RelocateOldNonCodeObject()
3007 int MarkCompactCollector::RelocateOldPointerObject(HeapObject* obj) { in RelocateOldPointerObject()
3012 int MarkCompactCollector::RelocateOldDataObject(HeapObject* obj) { in RelocateOldDataObject()
3017 int MarkCompactCollector::RelocateCellObject(HeapObject* obj) { in RelocateCellObject()
3022 int MarkCompactCollector::RelocateCodeObject(HeapObject* obj) { in RelocateCodeObject()
3026 ASSERT(heap()->map_space()->Contains(HeapObject::FromAddress(map_addr))); in RelocateCodeObject()
3041 HeapObject* copied_to = HeapObject::FromAddress(new_addr); in RelocateCodeObject()
3054 int MarkCompactCollector::RelocateNewObject(HeapObject* obj) { in RelocateNewObject()
3075 if (heap()->InNewSpace(HeapObject::FromAddress(new_addr))) { in RelocateNewObject()
3089 HeapObject* copied_to = HeapObject::FromAddress(new_addr); in RelocateNewObject()
3112 void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj, in ReportDeleteIfNeeded()
3127 int MarkCompactCollector::SizeOfMarkedObject(HeapObject* obj) { in SizeOfMarkedObject()