| Index: src/profile-generator-inl.h
|
| ===================================================================
|
| --- src/profile-generator-inl.h (revision 5316)
|
| +++ src/profile-generator-inl.h (working copy)
|
| @@ -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,16 +107,24 @@
|
| }
|
|
|
|
|
| -const char* CpuProfilesCollection::GetFunctionName(String* name) {
|
| - return GetFunctionName(GetName(name));
|
| +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;
|
| + }
|
| + }
|
| }
|
|
|
|
|
| -const char* CpuProfilesCollection::GetFunctionName(const char* name) {
|
| - return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName;
|
| -}
|
| -
|
| -
|
| CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) {
|
| switch (tag) {
|
| case GC:
|
|
|