Index: src/profile-generator-inl.h |
diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h |
index 0c50581ab795ef2c3793a98f9c3b2c3324461a09..cef825da8a64745481e7eff4736901b18d2b5c30 100644 |
--- a/src/profile-generator-inl.h |
+++ b/src/profile-generator-inl.h |
@@ -35,6 +35,16 @@ |
namespace v8 { |
namespace internal { |
+const char* StringsStorage::GetFunctionName(String* name) { |
+ return GetFunctionName(GetName(name)); |
+} |
+ |
+ |
+const char* StringsStorage::GetFunctionName(const char* name) { |
+ return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName; |
+} |
+ |
+ |
CodeEntry::CodeEntry(int security_token_id) |
: call_uid_(0), |
tag_(Logger::FUNCTION_TAG), |
@@ -97,13 +107,21 @@ void CodeMap::DeleteCode(Address addr) { |
} |
-const char* CpuProfilesCollection::GetFunctionName(String* name) { |
- return GetFunctionName(GetName(name)); |
-} |
- |
- |
-const char* CpuProfilesCollection::GetFunctionName(const char* name) { |
- return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName; |
+template<class Visitor> |
+void HeapEntriesMap::UpdateEntries(Visitor* visitor) { |
+ for (HashMap::Entry* p = entries_.Start(); |
+ p != NULL; |
+ p = entries_.Next(p)) { |
+ if (!IsAlias(p->value)) { |
+ EntryInfo* entry_info = reinterpret_cast<EntryInfo*>(p->value); |
+ entry_info->entry = visitor->GetEntry( |
+ reinterpret_cast<HeapObject*>(p->key), |
+ entry_info->children_count, |
+ entry_info->retainers_count); |
+ entry_info->children_count = 0; |
+ entry_info->retainers_count = 0; |
+ } |
+ } |
} |