New version of v8 from bleeding edge at revision 3649
diff --git a/src/heap-profiler.h b/src/heap-profiler.h
index f8cb04d..c615942 100644
--- a/src/heap-profiler.h
+++ b/src/heap-profiler.h
@@ -261,8 +261,12 @@
class ProducerHeapProfile : public AllStatic {
public:
static void Setup();
- static void RecordJSObjectAllocation(Object* obj);
+ static void RecordJSObjectAllocation(Object* obj) {
+ if (FLAG_log_producers) DoRecordJSObjectAllocation(obj);
+ }
+
private:
+ static void DoRecordJSObjectAllocation(Object* obj);
static bool can_log_;
};