/external/v8/src/ |
D | mark-compact.h | 39 typedef bool (*IsAliveFunction)(HeapObject* obj, int* size, int* offset); 56 top_ = low_ = reinterpret_cast<HeapObject**>(low); in Initialize() 57 high_ = reinterpret_cast<HeapObject**>(high); in Initialize() 72 void Push(HeapObject* object) { in Push() 82 HeapObject* Pop() { in Pop() 84 HeapObject* object = *(--top_); in Pop() 90 HeapObject** low_; 91 HeapObject** top_; 92 HeapObject** high_; 112 HeapObject* object, [all …]
|
D | liveobjectlist.h | 80 inline static void ProcessNonLive(HeapObject *obj); 120 HeapObject* obj_; 129 static void DoProcessNonLive(HeapObject *obj); 133 static Object* GetPathPrivate(HeapObject* obj1, HeapObject* obj2); 135 static int GetRetainers(Handle<HeapObject> target, 155 static void NullifyNonLivePointer(HeapObject **p) { in NullifyNonLivePointer() 164 *p = reinterpret_cast<HeapObject*>((*p)->address()); in NullifyNonLivePointer() 178 bool Add(HeapObject* obj); 179 Element* Find(HeapObject* obj); 180 static void NullifyMostRecent(HeapObject* obj); [all …]
|
D | mark-compact.cc | 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() [all …]
|
D | serialize.h | 311 HeapObject* GetAddressFromStart(int space); 312 inline HeapObject* GetAddressFromEnd(int space); 365 bool IsMapped(HeapObject* obj) { in IsMapped() 369 int MappedTo(HeapObject* obj) { in MappedTo() 375 void AddMapping(HeapObject* obj, int to) { in AddMapping() 387 RLYSTC uint32_t Hash(HeapObject* obj) { in Hash() 391 RLYSTC void* Key(HeapObject* obj) { in Key() 437 virtual int RootIndex(HeapObject* heap_object) = 0; 438 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) = 0; 448 object_(HeapObject::cast(o)), in ObjectSerializer() [all …]
|
D | liveobjectlist.cc | 125 v(HeapObject, "HeapObject") 137 LiveObjectType GetObjectType(HeapObject* heap_obj) { in GetObjectType() 161 const char* GetObjectTypeDesc(HeapObject* heap_obj) { in GetObjectTypeDesc() 167 bool IsOfType(LiveObjectType type, HeapObject *obj) { in IsOfType() 213 static bool InSpace(AllocationSpace space, HeapObject *heap_obj) { in InSpace() 257 inline bool Matches(HeapObject* obj) { in Matches() 265 bool MatchesSlow(HeapObject* obj); 332 bool LolFilter::MatchesSlow(HeapObject* obj) { in MatchesSlow() 391 inline HeapObject* Obj() const { in Obj() 484 static void GenerateObjectDesc(HeapObject* obj, in GenerateObjectDesc() [all …]
|
D | objects-printer.cc | 49 HeapObject::cast(this_as_object)->HeapObjectPrint(out); in Print() 64 void HeapObject::PrintHeader(FILE* out, const char* id) { in PrintHeader() 69 void HeapObject::HeapObjectPrint(FILE* out) { in HeapObjectPrint() 412 HeapObject::PrintHeader(out, "Map"); in MapPrint() 448 HeapObject::PrintHeader(out, "CodeCache"); in CodeCachePrint() 457 HeapObject::PrintHeader(out, "FixedArray"); in FixedArrayPrint() 468 HeapObject::PrintHeader(out, "ValueObject"); in JSValuePrint() 474 HeapObject::PrintHeader(out, "JSMessageObject"); in JSMessageObjectPrint() 519 HeapObject::PrintHeader(out, "Function"); in JSFunctionPrint() 543 HeapObject::PrintHeader(out, "SharedFunctionInfo"); in SharedFunctionInfoPrint() [all …]
|
D | spaces.h | 791 virtual HeapObject* next_object() = 0; 831 inline HeapObject* next() { in next() 836 virtual HeapObject* next_object() { return next(); } in next_object() 845 HeapObject* FromCurrentPage() { in FromCurrentPage() 848 HeapObject* obj = HeapObject::FromAddress(cur_addr_); in FromCurrentPage() 859 HeapObject* FromNextPage(); 1046 bool Contains(HeapObject* o) { return Contains(o->address()); } in Contains() 1170 virtual void VerifyObject(HeapObject* obj) {} in VerifyObject() 1240 inline HeapObject* AllocateLinearly(AllocationInfo* alloc_info, 1246 virtual HeapObject* AllocateInNextPage(Page* current_page, [all …]
|
D | objects-visiting.h | 199 HeapObject* object, in INLINE() 214 static inline ReturnType Visit(Map* map, HeapObject* object) { in Visit() 225 static inline ReturnType VisitSpecialized(Map* map, HeapObject* object) { in VisitSpecialized() 240 static inline ReturnType Visit(Map* map, HeapObject* object) { in Visit() 317 static inline int IterateBody(Map* map, HeapObject* obj) { in IterateBody() 326 static inline int VisitByteArray(Map* map, HeapObject* object) { in VisitByteArray() 330 static inline int VisitSeqAsciiString(Map* map, HeapObject* object) { in VisitSeqAsciiString() 335 static inline int VisitSeqTwoByteString(Map* map, HeapObject* object) { in VisitSeqTwoByteString() 343 static inline int VisitSpecialized(Map* map, HeapObject* object) { in VisitSpecialized() 347 static inline int Visit(Map* map, HeapObject* object) { in Visit() [all …]
|
D | objects-inl.h | 151 && HeapObject::cast(this)->map()->instance_type() == HEAP_NUMBER_TYPE; in IsHeapNumber() 157 && HeapObject::cast(this)->map()->instance_type() < FIRST_NONSTRING_TYPE; in IsString() 163 uint32_t type = HeapObject::cast(this)->map()->instance_type(); in IsSymbol() 175 uint32_t type = HeapObject::cast(this)->map()->instance_type(); in IsConsString() 339 && HeapObject::cast(this)->map()->instance_type() == BYTE_ARRAY_TYPE; in IsByteArray() 345 HeapObject::cast(this)->map()->instance_type() == in IsExternalPixelArray() 354 HeapObject::cast(this)->map()->instance_type(); in IsExternalArray() 362 HeapObject::cast(this)->map()->instance_type() == in IsExternalByteArray() 369 HeapObject::cast(this)->map()->instance_type() == in IsExternalUnsignedByteArray() 376 HeapObject::cast(this)->map()->instance_type() == in IsExternalShortArray() [all …]
|
D | heap.cc | 215 int Heap::GcSafeSizeOfOldObject(HeapObject* object) { in GcSafeSizeOfOldObject() 225 int Heap::GcSafeSizeOfOldObjectWithEncodedMap(HeapObject* object) { in GcSafeSizeOfOldObjectWithEncodedMap() 236 Map* map = reinterpret_cast<Map*>(HeapObject::FromAddress(map_address)); in GcSafeSizeOfOldObjectWithEncodedMap() 887 Heap::ScavengeObject(reinterpret_cast<HeapObject**>(p), in ScavengePointer() 888 reinterpret_cast<HeapObject*>(object)); in ScavengePointer() 903 ASSERT(!HEAP->InNewSpace(HeapObject::cast(*current))); in VisitPointers() 915 for (HeapObject* object = code_it.next(); in VerifyNonPointerSpacePointers() 920 for (HeapObject* object = data_it.next(); in VerifyNonPointerSpacePointers() 1018 for (HeapObject* cell = cell_iterator.next(); in Scavenge() 1058 MapWord first_word = HeapObject::cast(*p)->map_word(); in UpdateNewSpaceReferenceInExternalStringTableEntry() [all …]
|
D | string-stream.cc | 205 debug_object_cache->Add(HeapObject::cast(o)); in PrintObject() 292 new List<HeapObject*, PreallocatedStorage>(0)); in ClearMentionedObjectCache() 422 HeapObject* printee = (*debug_object_cache)[i]; in PrintMentionedObjectCache() 454 if (!f->IsHeapObject() || !heap->Contains(HeapObject::cast(f))) { in PrintSecurityTokenIfChanged() 457 Map* map = HeapObject::cast(f)->map(); in PrintSecurityTokenIfChanged() 468 heap->Contains(HeapObject::cast(perhaps_context)) && in PrintSecurityTokenIfChanged() 488 HEAP->Contains(HeapObject::cast(f)) && in PrintFunction() 489 HEAP->Contains(HeapObject::cast(f)->map()) && in PrintFunction() 490 HeapObject::cast(f)->map()->IsMap()) { in PrintFunction() 516 if (!HEAP->Contains(HeapObject::cast(f))) { in PrintFunction() [all …]
|
D | heap-profiler.cc | 47 static JSObjectsCluster Clusterize(HeapObject* obj) { in Clusterize() 51 HeapObject* obj, bool fine_grain); 58 static JSObjectsCluster Clusterize(HeapObject* obj, bool fine_grain); 60 static int GetObjectSize(HeapObject* obj) { in GetObjectSize() 69 JSObjectsCluster Clusterizer::Clusterize(HeapObject* obj, bool fine_grain) { in Clusterize() 93 HeapObject* obj, bool fine_grain) { in InsertIntoTree() 154 profile_->StoreReference(cluster_, HeapObject::cast(*o)); in VisitPointer() 493 void ConstructorHeapProfile::CollectStats(HeapObject* obj) { in CollectStats() 716 HeapObject* ref) { in StoreReference() 728 void RetainerHeapProfile::CollectStats(HeapObject* obj) { in CollectStats() [all …]
|
D | inspector.cc | 45 HeapObject *hobj = HeapObject::cast(obj); in DumpObjectType()
|
D | serialize.cc | 615 HeapObject* new_object = HeapObject::cast(new_allocation); in Allocate() 631 HeapObject* new_object = HeapObject::cast(new_allocation); in Allocate() 643 HeapObject* Deserializer::GetAddressFromEnd(int space) { in GetAddressFromEnd() 647 return HeapObject::FromAddress(high_water_[space] - offset); in GetAddressFromEnd() 653 HeapObject* Deserializer::GetAddressFromStart(int space) { in GetAddressFromStart() 657 return HeapObject::FromAddress(pages_[LO_SPACE][offset]); in GetAddressFromStart() 662 return HeapObject::FromAddress(pages_[space][0] + offset); in GetAddressFromStart() 668 return HeapObject::FromAddress(object_address); in GetAddressFromStart() 738 *write_back = HeapObject::FromAddress(address); in ReadObject() 748 ASSERT(HeapObject::FromAddress(address)->IsCode() == is_codespace); in ReadObject() [all …]
|
D | profile-generator.h | 923 static HeapObject* const kInternalRootObject; 927 HeapObject* object, int children_count, int retainers_count); 928 HeapEntry* AddEntry(HeapObject* object, 933 const char* GetSystemEntryName(HeapObject* object); 934 void ExtractReferences(HeapObject* obj); 939 void SetClosureReference(HeapObject* parent_obj, 943 void SetElementReference(HeapObject* parent_obj, 947 void SetInternalReference(HeapObject* parent_obj, 952 void SetInternalReference(HeapObject* parent_obj, 957 void SetHiddenReference(HeapObject* parent_obj, [all …]
|
D | profile-generator.cc | 1586 HeapObject* object = HeapObject::cast(obj); in Contains() 1595 HeapObject* object = HeapObject::cast(obj); in Insert() 1604 HeapObject *const V8HeapExplorer::kInternalRootObject = 1605 reinterpret_cast<HeapObject*>( 1607 HeapObject *const V8HeapExplorer::kGcRootsObject = 1608 reinterpret_cast<HeapObject*>( 1629 reinterpret_cast<HeapObject*>(ptr), children_count, retainers_count); in AllocateEntry() 1633 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object, in AddEntry() 1714 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object, in AddEntry() 1734 const char* V8HeapExplorer::GetSystemEntryName(HeapObject* object) { in GetSystemEntryName() [all …]
|
D | spaces.cc | 91 HeapObject* HeapObjectIterator::FromNextPage() { in FromNextPage() 915 HeapObject* obj = HeapObject::FromAddress(cur); in FindObject() 982 HeapObject* PagedSpace::SlowMCAllocateRaw(int size_in_bytes) { in SlowMCAllocateRaw() 1150 HeapObject* object = HeapObject::FromAddress(current); in Verify() 1361 HeapObject* object = HeapObject::FromAddress(current); in Verify() 1591 static int CollectHistogramInfo(HeapObject* obj) { in CollectHistogramInfo() 1658 for (HeapObject* obj = it.next(); obj != NULL; obj = it.next()) in CollectStatistics() 1723 void NewSpace::RecordAllocation(HeapObject* obj) { in RecordAllocation() 1731 void NewSpace::RecordPromotion(HeapObject* obj) { in RecordPromotion() 2249 HeapObject* OldSpace::SlowAllocateRaw(int size_in_bytes) { in SlowAllocateRaw() [all …]
|
D | heap.h | 269 inline void insert(HeapObject* target, int size); 271 void remove(HeapObject** target, int* size) { in remove() 272 *target = reinterpret_cast<HeapObject*>(*(--front_)); in remove() 975 bool Contains(HeapObject* value); 980 bool InSpace(HeapObject* value, AllocationSpace space); 983 inline OldSpace* TargetSpace(HeapObject* object); 1077 static inline void ScavengePointer(HeapObject** p); 1078 static inline void ScavengeObject(HeapObject** p, HeapObject* object); 1405 static int GcSafeSizeOfOldObject(HeapObject* object); 1406 static int GcSafeSizeOfOldObjectWithEncodedMap(HeapObject* object); [all …]
|
D | objects.h | 683 V(HeapObject) \ 992 static inline MapWord FromForwardingAddress(HeapObject* object); 995 inline HeapObject* ToForwardingAddress(); 1095 friend class HeapObject; 1105 class HeapObject: public Object { 1126 static inline HeapObject* FromAddress(Address address); 1177 static inline Object** RawField(HeapObject* obj, int offset); 1180 static inline HeapObject* cast(Object* obj); 1228 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapObject); 1245 static inline void IterateBody(HeapObject* obj, ObjectVisitor* v); [all …]
|
D | heap-inl.h | 39 void PromotionQueue::insert(HeapObject* target, int size) { in insert() 91 reinterpret_cast<HeapObject*>(result)->set_map(map); in AllocateAsciiSymbol() 124 reinterpret_cast<HeapObject*>(result)->set_map(map); in AllocateTwoByteSymbol() 298 OldSpace* Heap::TargetSpace(HeapObject* object) { in TargetSpace() 394 void Heap::ScavengePointer(HeapObject** p) { in ScavengePointer() 399 void Heap::ScavengeObject(HeapObject** p, HeapObject* object) { in ScavengeObject() 687 void MarkCompactCollector::SetMark(HeapObject* obj) { in SetMark()
|
D | global-handles.h | 83 static ImplicitRefGroup* New(HeapObject** parent, in New() 99 HeapObject** parent_; 189 void AddImplicitReferences(HeapObject** parent,
|
D | liveobjectlist-inl.h | 62 void LiveObjectList::ProcessNonLive(HeapObject *obj) { in ProcessNonLive() 116 inline HeapObject*
|
/external/v8/tools/ |
D | grokdump.py | 481 class HeapObject(object): class 507 class Map(HeapObject): 511 HeapObject.__init__(self, heap, map, address) 516 class String(HeapObject): 520 HeapObject.__init__(self, heap, map, address) 587 class Oddball(HeapObject): 591 HeapObject.__init__(self, heap, map, address) 601 class FixedArray(HeapObject): 606 HeapObject.__init__(self, heap, map, address) 623 class JSFunction(HeapObject): [all …]
|
/external/v8/test/cctest/ |
D | test-spaces.cc | 210 CHECK(new_space.Contains(HeapObject::cast(obj))); in TEST() 261 Map* faked_map = reinterpret_cast<Map*>(HeapObject::FromAddress(0)); in TEST() 267 HeapObject* ho = HeapObject::cast(obj); in TEST() 270 CHECK(lo->Contains(HeapObject::cast(obj))); in TEST() 281 HeapObject::cast(obj)->set_map(faked_map); in TEST()
|
D | test-mark-compact.cc | 57 s.Push(HeapObject::FromAddress(address)); in TEST() 353 Handle<HeapObject>::cast(g1s1).location(), g1_children, 1); in TEST() 356 Handle<HeapObject>::cast(g2s2).location(), g2_children, 1); in TEST() 381 Handle<HeapObject>::cast(g1s1).location(), g1_children, 1); in TEST() 384 Handle<HeapObject>::cast(g2s2).location(), g2_children, 1); in TEST() 443 Handle<HeapObject>::cast(object).location(), NULL, 0); in TEST()
|