Index: src/profile-generator-inl.h |
diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h |
index fecb70b7753347686ed35ab86ef71e9a571db4a6..ea9bc987672cdbe1a1e4f1d34b33a53b621858a3 100644 |
--- a/src/profile-generator-inl.h |
+++ b/src/profile-generator-inl.h |
@@ -130,6 +130,17 @@ CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) { |
} |
} |
+ |
+template<class Visitor> |
+void HeapEntriesMap::Apply(Visitor* visitor) { |
+ for (HashMap::Entry* p = entries_.Start(); |
+ p != NULL; |
+ p = entries_.Next(p)) { |
+ if (!IsAlias(p->value)) |
+ visitor->Apply(reinterpret_cast<HeapEntry*>(p->value)); |
+ } |
+} |
+ |
} } // namespace v8::internal |
#endif // ENABLE_LOGGING_AND_PROFILING |