Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 471f7a6461cdd2ab133633c0dcbf4d3a02d42ab0..d20a23e955238f151202418b78e6d02d03c5b59e 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -10,8 +10,9 @@ |
#include "src/heap/gc-idle-time-handler.h" |
#include "src/heap/gc-tracer.h" |
#include "src/heap/mark-compact-inl.h" |
-#include "src/heap/objects-visiting.h" |
+#include "src/heap/object-stats.h" |
#include "src/heap/objects-visiting-inl.h" |
+#include "src/heap/objects-visiting.h" |
#include "src/tracing/trace-event.h" |
#include "src/v8.h" |
@@ -175,6 +176,9 @@ class IncrementalMarkingMarkingVisitor |
table_.Register(kVisitFixedArray, &VisitFixedArrayIncremental); |
table_.Register(kVisitNativeContext, &VisitNativeContextIncremental); |
table_.Register(kVisitJSRegExp, &VisitJSRegExp); |
+ if (FLAG_track_gc_object_stats) { |
+ IncrementalMarkingObjectStatsVisitor::Initialize(&table_); |
+ } |
} |
static const int kProgressBarScanningChunk = 32 * 1024; |