Chromium Code Reviews| Index: src/profile-generator.h |
| diff --git a/src/profile-generator.h b/src/profile-generator.h |
| index b88d4659d013cd17104d40b7aaf0f0fab96d943e..19cac57ee0c4930ee69c5e6f698a4abb780914ce 100644 |
| --- a/src/profile-generator.h |
| +++ b/src/profile-generator.h |
| @@ -525,7 +525,8 @@ class HeapEntry BASE_EMBEDDED { |
| kClosure = v8::HeapGraphNode::kClosure, |
| kRegExp = v8::HeapGraphNode::kRegExp, |
| kHeapNumber = v8::HeapGraphNode::kHeapNumber, |
| - kNative = v8::HeapGraphNode::kNative |
| + kNative = v8::HeapGraphNode::kNative, |
| + kArtificial = v8::HeapGraphNode::kArtificial |
| }; |
| HeapEntry() { } |
| @@ -1026,16 +1027,16 @@ class V8HeapExplorer : public HeapEntriesAllocator { |
| DISALLOW_COPY_AND_ASSIGN(V8HeapExplorer); |
| }; |
| + |
| class NativeGroupRetainedObjectInfo; |
| + |
| // An implementation of retained native objects extractor. |
| -class NativeObjectsExplorer : public HeapEntriesAllocator { |
| +class NativeObjectsExplorer { |
| public: |
| NativeObjectsExplorer(HeapSnapshot* snapshot, |
| SnapshottingProgressReportingInterface* progress); |
| virtual ~NativeObjectsExplorer(); |
| - virtual HeapEntry* AllocateEntry( |
| - HeapThing ptr, int children_count, int retainers_count); |
| void AddRootEntries(SnapshotFillerInterface* filler); |
| int EstimateObjectsCount(); |
| bool IterateAndExtractReferences(SnapshotFillerInterface* filler); |
| @@ -1074,6 +1075,8 @@ class NativeObjectsExplorer : public HeapEntriesAllocator { |
| // RetainedObjectInfo* -> List<HeapObject*>* |
| HashMap objects_by_info_; |
| HashMap native_groups_; |
| + HeapEntriesAllocator* artificial_entries_allocator_; |
|
mnaganov (inactive)
2012/02/06 15:37:22
I'm against manual dynamic object allocation unles
|
| + HeapEntriesAllocator* native_entries_allocator_; |
| // Used during references extraction. |
| SnapshotFillerInterface* filler_; |