Home | History | Annotate | Download | only in src

Lines Matching defs:HeapEntry

47 const int HeapEntry::kNoEntry = -1;
49 HeapEntry::HeapEntry(HeapSnapshot* snapshot,
65 void HeapEntry::SetNamedReference(HeapGraphEdge::Type type,
67 HeapEntry* entry) {
74 void HeapEntry::SetIndexedReference(HeapGraphEdge::Type type,
76 HeapEntry* entry) {
83 void HeapEntry::Print(
144 const char* HeapEntry::TypeAsString() {
189 root_index_(HeapEntry::kNoEntry),
190 gc_roots_index_(HeapEntry::kNoEntry),
191 natives_root_index_(HeapEntry::kNoEntry),
197 sizeof(HeapEntry) ==
204 gc_subroot_indexes_[i] = HeapEntry::kNoEntry;
220 HeapEntry* HeapSnapshot::AddRootEntry() {
221 ASSERT(root_index_ == HeapEntry::kNoEntry);
223 HeapEntry* entry = AddEntry(HeapEntry::kSynthetic,
234 HeapEntry* HeapSnapshot::AddGcRootsEntry() {
235 ASSERT(gc_roots_index_ == HeapEntry::kNoEntry);
236 HeapEntry* entry = AddEntry(HeapEntry::kSynthetic,
246 HeapEntry* HeapSnapshot::AddGcSubrootEntry(int tag) {
247 ASSERT(gc_subroot_indexes_[tag] == HeapEntry::kNoEntry);
249 HeapEntry* entry = AddEntry(
250 HeapEntry::kSynthetic,
260 HeapEntry* HeapSnapshot::AddEntry(HeapEntry::Type type,
265 HeapEntry entry(this, type, name, id, size, trace_node_id);
276 HeapEntry* entry = &entries()[i];
291 int operator()(HeapEntry* const* entry) {
300 HeapEntry* HeapSnapshot::GetEntryById(SnapshotObjectId id) {
301 List<HeapEntry*>* entries_by_id = GetSortedEntriesList();
318 List<HeapEntry*>* HeapSnapshot::GetSortedEntriesList() {
719 if (cache_entry == NULL) return HeapEntry::kNoEntry;
806 HeapEntry* V8HeapExplorer::AllocateEntry(HeapThing ptr) {
811 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object) {
816 HeapEntry* entry = snapshot_->AddGcRootsEntry();
819 HeapEntry* entry = snapshot_->AddGcSubrootEntry(GetGcSubrootOrder(object));
826 return AddEntry(object, HeapEntry::kClosure, name);
830 HeapEntry::kRegExp,
841 return AddEntry(object, HeapEntry::kObject, name);
846 HeapEntry::kConsString,
850 HeapEntry::kSlicedString,
853 HeapEntry::kString,
856 return AddEntry(object, HeapEntry::kSymbol, "symbol");
858 return AddEntry(object, HeapEntry::kCode, "");
862 HeapEntry::kCode,
867 HeapEntry::kCode,
872 return AddEntry(object, HeapEntry::kHidden, "system / NativeContext");
874 return AddEntry(object, HeapEntry::kObject, "system / Context");
879 return AddEntry(object, HeapEntry::kArray, "");
881 return AddEntry(object, HeapEntry::kHeapNumber, "number");
883 return AddEntry(object, HeapEntry::kHidden, GetSystemEntryName(object));
887 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object,
888 HeapEntry::Type type,
894 HeapEntry* V8HeapExplorer::AddEntry(Address address,
895 HeapEntry::Type type,
916 HeapEntry* AddEntry(HeapThing ptr, HeapEntriesAllocator* allocator) {
917 HeapEntry* entry = allocator->AllocateEntry(ptr);
921 HeapEntry* FindEntry(HeapThing ptr) {
923 return index != HeapEntry::kNoEntry ? &snapshot_->entries()[index] : NULL;
925 HeapEntry* FindOrAddEntry(HeapThing ptr, HeapEntriesAllocator* allocator) {
926 HeapEntry* entry = FindEntry(ptr);
932 HeapEntry* child_entry) {
933 HeapEntry* parent_entry = &snapshot_->entries()[parent];
938 HeapEntry* child_entry) {
939 HeapEntry* parent_entry = &snapshot_->entries()[parent];
946 HeapEntry* child_entry) {
947 HeapEntry* parent_entry = &snapshot_->entries()[parent];
952 HeapEntry* child_entry) {
953 HeapEntry* parent_entry = &snapshot_->entries()[parent];
1571 virtual HeapEntry* AllocateEntry(HeapThing ptr) {
1574 HeapEntry::kNative, "system / JSArrayBufferData", size_);
1594 HeapEntry* data_entry =
1799 HeapEntry* V8HeapExplorer::GetEntry(Object* obj) {
1917 HeapEntry* heap_entry = GetEntry(obj);
1956 HeapEntry* child_entry = GetEntry(child_obj);
1972 HeapEntry* child_entry = GetEntry(child_obj);
1987 HeapEntry* child_entry = GetEntry(child_obj);
2003 HeapEntry* child_entry = GetEntry(child_obj);
2021 HeapEntry* child_entry = GetEntry(child_obj);
2038 HeapEntry* child_entry = GetEntry(child_obj);
2054 HeapEntry* child_entry = GetEntry(child_obj);
2072 HeapEntry* child_entry = GetEntry(child_obj);
2091 HeapEntry* child_entry = GetEntry(child_obj);
2121 HeapEntry* child_entry = GetEntry(child_obj);
2140 HeapEntry* child_entry = GetEntry(child_obj);
2201 HeapEntry* entry = GetEntry(obj);
2287 HeapEntry::Type entries_type)
2293 virtual HeapEntry* AllocateEntry(HeapThing ptr);
2298 HeapEntry::Type entries_type_;
2302 HeapEntry* BasicHeapEntriesAllocator::AllocateEntry(HeapThing ptr) {
2331 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kSynthetic);
2333 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kNative);
2403 ASSERT(parent_entry != HeapEntry::kNoEntry);
2407 HeapEntry* child_entry =
2502 HeapEntry* child_entry =
2507 HeapEntry* group_entry =
2518 HeapEntry* wrapper_entry = filler_->FindEntry(wrapper);
2520 HeapEntry* info_entry =
2539 HeapEntry* group_entry =
2890 void HeapSnapshotJSONSerializer::SerializeNode(HeapEntry* entry) {
2919 List<HeapEntry>& entries = snapshot_->entries();