Index: src/profile-generator.h |
=================================================================== |
--- src/profile-generator.h (revision 9327) |
+++ src/profile-generator.h (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright 2010 the V8 project authors. All rights reserved. |
+// Copyright 2011 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -550,7 +550,10 @@ |
Vector<HeapGraphEdge*> retainers() { |
return Vector<HeapGraphEdge*>(retainers_arr(), retainers_count_); } |
HeapEntry* dominator() { return dominator_; } |
- void set_dominator(HeapEntry* entry) { dominator_ = entry; } |
+ void set_dominator(HeapEntry* entry) { |
+ ASSERT(entry != NULL); |
+ dominator_ = entry; |
+ } |
void clear_paint() { painted_ = kUnpainted; } |
bool painted_reachable() { return painted_ == kPainted; } |
@@ -917,7 +920,7 @@ |
virtual HeapEntry* AllocateEntry( |
HeapThing ptr, int children_count, int retainers_count); |
void AddRootEntries(SnapshotFillerInterface* filler); |
- int EstimateObjectsCount(); |
+ int EstimateObjectsCount(HeapIterator* iterator); |
bool IterateAndExtractReferences(SnapshotFillerInterface* filler); |
void TagGlobalObjects(); |