OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1024 matching lines...) Loading... |
1035 SnapshottingProgressReportingInterface* progress); | 1035 SnapshottingProgressReportingInterface* progress); |
1036 virtual ~NativeObjectsExplorer(); | 1036 virtual ~NativeObjectsExplorer(); |
1037 virtual HeapEntry* AllocateEntry( | 1037 virtual HeapEntry* AllocateEntry( |
1038 HeapThing ptr, int children_count, int retainers_count); | 1038 HeapThing ptr, int children_count, int retainers_count); |
1039 void AddRootEntries(SnapshotFillerInterface* filler); | 1039 void AddRootEntries(SnapshotFillerInterface* filler); |
1040 int EstimateObjectsCount(); | 1040 int EstimateObjectsCount(); |
1041 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); | 1041 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); |
1042 | 1042 |
1043 private: | 1043 private: |
1044 void FillRetainedObjects(); | 1044 void FillRetainedObjects(); |
| 1045 void FillImplicitReferences(); |
1045 List<HeapObject*>* GetListMaybeDisposeInfo(v8::RetainedObjectInfo* info); | 1046 List<HeapObject*>* GetListMaybeDisposeInfo(v8::RetainedObjectInfo* info); |
1046 void SetNativeRootReference(v8::RetainedObjectInfo* info); | 1047 void SetNativeRootReference(v8::RetainedObjectInfo* info); |
1047 void SetRootNativeRootsReference(); | 1048 void SetRootNativeRootsReference(); |
1048 void SetWrapperNativeReferences(HeapObject* wrapper, | 1049 void SetWrapperNativeReferences(HeapObject* wrapper, |
1049 v8::RetainedObjectInfo* info); | 1050 v8::RetainedObjectInfo* info); |
1050 void VisitSubtreeWrapper(Object** p, uint16_t class_id); | 1051 void VisitSubtreeWrapper(Object** p, uint16_t class_id); |
1051 | 1052 |
1052 static uint32_t InfoHash(v8::RetainedObjectInfo* info) { | 1053 static uint32_t InfoHash(v8::RetainedObjectInfo* info) { |
1053 return ComputeIntegerHash(static_cast<uint32_t>(info->GetHash()), | 1054 return ComputeIntegerHash(static_cast<uint32_t>(info->GetHash()), |
1054 v8::internal::kZeroHashSeed); | 1055 v8::internal::kZeroHashSeed); |
(...skipping 109 matching lines...) Loading... |
1164 | 1165 |
1165 friend class HeapSnapshotJSONSerializerEnumerator; | 1166 friend class HeapSnapshotJSONSerializerEnumerator; |
1166 friend class HeapSnapshotJSONSerializerIterator; | 1167 friend class HeapSnapshotJSONSerializerIterator; |
1167 | 1168 |
1168 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1169 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
1169 }; | 1170 }; |
1170 | 1171 |
1171 } } // namespace v8::internal | 1172 } } // namespace v8::internal |
1172 | 1173 |
1173 #endif // V8_PROFILE_GENERATOR_H_ | 1174 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |