Index: src/heap/object-stats.h |
diff --git a/src/heap/object-stats.h b/src/heap/object-stats.h |
index ae8551671a21c480ba95eee0ec808e6408df060c..bd3baf165aa58c397694da23a818e83696eb256d 100644 |
--- a/src/heap/object-stats.h |
+++ b/src/heap/object-stats.h |
@@ -80,6 +80,21 @@ class ObjectStats { |
size_t object_sizes_last_time_[OBJECT_STATS_COUNT]; |
}; |
+ |
+class ObjectStatsVisitor : public StaticMarkingVisitor<ObjectStatsVisitor> { |
+ public: |
+ static void Initialize(VisitorDispatchTable<Callback>* original); |
+ |
+ static void VisitBase(VisitorId id, Map* map, HeapObject* obj); |
+ |
+ static void CountFixedArray(FixedArrayBase* fixed_array, |
+ FixedArraySubInstanceType fast_type, |
+ FixedArraySubInstanceType dictionary_type); |
+ |
+ template <VisitorId id> |
+ static inline void Visit(Map* map, HeapObject* obj); |
+}; |
+ |
} // namespace internal |
} // namespace v8 |