• Home
  • Raw
  • Download

Lines Matching refs:HeapEntry

62 const int HeapEntry::kNoEntry = -1;
64 HeapEntry::HeapEntry(HeapSnapshot* snapshot, in HeapEntry() function in v8::internal::HeapEntry
80 void HeapEntry::SetNamedReference(HeapGraphEdge::Type type, in SetNamedReference()
82 HeapEntry* entry) { in SetNamedReference()
89 void HeapEntry::SetIndexedReference(HeapGraphEdge::Type type, in SetIndexedReference()
91 HeapEntry* entry) { in SetIndexedReference()
98 void HeapEntry::Print( in Print()
158 const char* HeapEntry::TypeAsString() { in TypeAsString()
182 root_index_(HeapEntry::kNoEntry), in HeapSnapshot()
183 gc_roots_index_(HeapEntry::kNoEntry), in HeapSnapshot()
189 STATIC_ASSERT(((kPointerSize == 4) && (sizeof(HeapEntry) == 28)) || in HeapSnapshot()
190 ((kPointerSize == 8) && (sizeof(HeapEntry) == 40))); in HeapSnapshot()
192 gc_subroot_indexes_[i] = HeapEntry::kNoEntry; in HeapSnapshot()
219 HeapEntry* HeapSnapshot::AddRootEntry() { in AddRootEntry()
220 DCHECK_EQ(root_index_, HeapEntry::kNoEntry); in AddRootEntry()
222 HeapEntry* entry = AddEntry(HeapEntry::kSynthetic, in AddRootEntry()
233 HeapEntry* HeapSnapshot::AddGcRootsEntry() { in AddGcRootsEntry()
234 DCHECK_EQ(gc_roots_index_, HeapEntry::kNoEntry); in AddGcRootsEntry()
235 HeapEntry* entry = AddEntry(HeapEntry::kSynthetic, in AddGcRootsEntry()
244 HeapEntry* HeapSnapshot::AddGcSubrootEntry(Root root, SnapshotObjectId id) { in AddGcSubrootEntry()
245 DCHECK_EQ(gc_subroot_indexes_[static_cast<int>(root)], HeapEntry::kNoEntry); in AddGcSubrootEntry()
246 HeapEntry* entry = in AddGcSubrootEntry()
247 AddEntry(HeapEntry::kSynthetic, RootVisitor::RootName(root), id, 0, 0); in AddGcSubrootEntry()
256 HeapEntry* HeapSnapshot::AddEntry(HeapEntry::Type type, in AddEntry()
271 for (HeapEntry& entry : entries()) { in FillChildren()
281 HeapEntry* HeapSnapshot::GetEntryById(SnapshotObjectId id) { in GetEntryById()
282 std::vector<HeapEntry*>* entries_by_id = GetSortedEntriesList(); in GetEntryById()
286 [](HeapEntry* first, SnapshotObjectId val) { return first->id() < val; }); in GetEntryById()
293 bool operator()(const HeapEntry* entry1_ptr, const HeapEntry* entry2_ptr) { in operator ()()
298 std::vector<HeapEntry*>* HeapSnapshot::GetSortedEntriesList() { in GetSortedEntriesList()
301 for (HeapEntry& entry : entries_) { in GetSortedEntriesList()
547 if (cache_entry == nullptr) return HeapEntry::kNoEntry; in Map()
613 HeapEntry* V8HeapExplorer::AllocateEntry(HeapThing ptr) { in AllocateEntry()
645 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object) { in AddEntry()
650 return AddEntry(object, HeapEntry::kClosure, name); in AddEntry()
652 return AddEntry(object, HeapEntry::kClosure, "native_bind"); in AddEntry()
656 HeapEntry::kRegExp, in AddEntry()
667 return AddEntry(object, HeapEntry::kObject, name); in AddEntry()
672 HeapEntry::kConsString, in AddEntry()
676 HeapEntry::kSlicedString, in AddEntry()
679 HeapEntry::kString, in AddEntry()
683 return AddEntry(object, HeapEntry::kHidden, "private symbol"); in AddEntry()
685 return AddEntry(object, HeapEntry::kSymbol, "symbol"); in AddEntry()
687 return AddEntry(object, HeapEntry::kBigInt, "bigint"); in AddEntry()
689 return AddEntry(object, HeapEntry::kCode, ""); in AddEntry()
693 HeapEntry::kCode, in AddEntry()
698 HeapEntry::kCode, in AddEntry()
703 return AddEntry(object, HeapEntry::kHidden, "system / NativeContext"); in AddEntry()
705 return AddEntry(object, HeapEntry::kObject, "system / Context"); in AddEntry()
708 return AddEntry(object, HeapEntry::kArray, ""); in AddEntry()
710 return AddEntry(object, HeapEntry::kHeapNumber, "number"); in AddEntry()
712 return AddEntry(object, HeapEntry::kHidden, GetSystemEntryName(object)); in AddEntry()
716 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object, in AddEntry()
717 HeapEntry::Type type, in AddEntry()
723 HeapEntry* V8HeapExplorer::AddEntry(Address address, in AddEntry()
724 HeapEntry::Type type, in AddEntry()
745 HeapEntry* AddEntry(HeapThing ptr, HeapEntriesAllocator* allocator) { in AddEntry()
746 HeapEntry* entry = allocator->AllocateEntry(ptr); in AddEntry()
750 HeapEntry* FindEntry(HeapThing ptr) { in FindEntry()
752 return index != HeapEntry::kNoEntry ? &snapshot_->entries()[index] in FindEntry()
755 HeapEntry* FindOrAddEntry(HeapThing ptr, HeapEntriesAllocator* allocator) { in FindOrAddEntry()
756 HeapEntry* entry = FindEntry(ptr); in FindOrAddEntry()
762 HeapEntry* child_entry) { in SetIndexedReference()
763 HeapEntry* parent_entry = &snapshot_->entries()[parent]; in SetIndexedReference()
768 HeapEntry* child_entry) { in SetIndexedAutoIndexReference()
769 HeapEntry* parent_entry = &snapshot_->entries()[parent]; in SetIndexedAutoIndexReference()
776 HeapEntry* child_entry) { in SetNamedReference()
777 HeapEntry* parent_entry = &snapshot_->entries()[parent]; in SetNamedReference()
782 HeapEntry* child_entry) { in SetNamedAutoIndexReference()
783 HeapEntry* parent_entry = &snapshot_->entries()[parent]; in SetNamedAutoIndexReference()
1082 HeapEntry* key_entry = GetEntry(key); in ExtractEphemeronHashTableReferences()
1084 HeapEntry* value_entry = GetEntry(value); in ExtractEphemeronHashTableReferences()
1355 virtual HeapEntry* AllocateEntry(HeapThing ptr) { in AllocateEntry()
1357 HeapEntry::kNative, "system / JSArrayBufferData", in AllocateEntry()
1372 HeapEntry* data_entry = in ExtractJSArrayBufferReferences()
1568 HeapEntry* V8HeapExplorer::GetEntry(Object* obj) { in GetEntry()
1633 HeapEntry* heap_entry = GetEntry(obj); in IterateAndExtractReferences()
1693 HeapEntry* child_entry = GetEntry(child_obj); in SetContextReference()
1713 HeapEntry* child_entry = GetEntry(child_obj); in SetNativeBindReference()
1725 HeapEntry* child_entry = GetEntry(child_obj); in SetElementReference()
1738 HeapEntry* child_entry = GetEntry(child_obj); in SetInternalReference()
1756 HeapEntry* child_entry = GetEntry(child_obj); in SetInternalReference()
1771 HeapEntry* child_entry = GetEntry(child_obj); in SetHiddenReference()
1786 HeapEntry* child_entry = GetEntry(child_obj); in SetWeakReference()
1804 HeapEntry* child_entry = GetEntry(child_obj); in SetWeakReference()
1836 HeapEntry* child_entry = GetEntry(child_obj); in SetPropertyReference()
1863 HeapEntry* child_entry = GetEntry(child_obj); in SetUserGlobalReference()
1878 HeapEntry* child_entry = GetEntry(child_obj); in SetGcSubrootReference()
1951 HeapEntry* entry = GetEntry(obj); in TagObject()
2074 HeapEntry::Type entries_type) in BasicHeapEntriesAllocator()
2080 virtual HeapEntry* AllocateEntry(HeapThing ptr);
2085 HeapEntry::Type entries_type_;
2089 HeapEntry* BasicHeapEntriesAllocator::AllocateEntry(HeapThing ptr) { in AllocateEntry()
2111 virtual HeapEntry* AllocateEntry(HeapThing ptr);
2128 HeapEntry::Type EmbedderGraphNodeType(EmbedderGraphImpl::Node* node) { in EmbedderGraphNodeType()
2129 return HeapEntry::kNative; in EmbedderGraphNodeType()
2148 HeapEntry* EmbedderGraphEntriesAllocator::AllocateEntry(HeapThing ptr) { in AllocateEntry()
2192 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kSynthetic)), in NativeObjectsExplorer()
2194 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kNative)), in NativeObjectsExplorer()
2258 DCHECK_NE(parent_entry, HeapEntry::kNoEntry); in FillEdges()
2262 HeapEntry* child_entry = in FillEdges()
2281 HeapEntry* NativeObjectsExplorer::EntryForEmbedderGraphNode( in EntryForEmbedderGraphNode()
2295 HeapEntry* entry = filler_->FindEntry(HeapObject::cast(object)); in EntryForEmbedderGraphNode()
2319 HeapEntry* wrapper_entry = EntryForEmbedderGraphNode(wrapper); in IterateAndExtractReferences()
2328 HeapEntry* from = EntryForEmbedderGraphNode(edge.from); in IterateAndExtractReferences()
2335 HeapEntry* to = EntryForEmbedderGraphNode(edge.to); in IterateAndExtractReferences()
2377 HeapEntry* child_entry = in SetNativeRootReference()
2382 HeapEntry* group_entry = in SetNativeRootReference()
2394 HeapEntry* wrapper_entry = filler_->FindEntry(wrapper); in SetWrapperNativeReferences()
2396 HeapEntry* info_entry = in SetWrapperNativeReferences()
2412 HeapEntry* group_entry = in SetRootNativeRootsReference()
2779 void HeapSnapshotJSONSerializer::SerializeNode(const HeapEntry* entry) { in SerializeNode()
2808 std::vector<HeapEntry>& entries = snapshot_->entries(); in SerializeNodes()
2809 for (const HeapEntry& entry : entries) { in SerializeNodes()