Index: bleeding_edge/src/heap-profiler.cc |
=================================================================== |
--- bleeding_edge/src/heap-profiler.cc (revision 3482) |
+++ bleeding_edge/src/heap-profiler.cc (working copy) |
@@ -667,8 +667,9 @@ |
can_log_ = true; |
} |
-void ProducerHeapProfile::RecordJSObjectAllocation(Object* obj) { |
- if (!can_log_ || !FLAG_log_producers) return; |
+void ProducerHeapProfile::DoRecordJSObjectAllocation(Object* obj) { |
+ ASSERT(FLAG_log_producers); |
+ if (!can_log_) return; |
int framesCount = 0; |
for (JavaScriptFrameIterator it; !it.done(); it.Advance()) { |
++framesCount; |