Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 7461462ccb5cfe8edd3e1d4d88348dad176d5d4b..8505b5b40d63fa4dec91195a724de24d13aa4d94 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -183,7 +183,9 @@ size_t StringsStorage::GetUsedMemorySize() const { |
return size; |
} |
+ |
const char* const CodeEntry::kEmptyNamePrefix = ""; |
+const char* const CodeEntry::kEmptyResourceName = ""; |
CodeEntry::~CodeEntry() { |
@@ -296,12 +298,7 @@ class DeleteNodesCallback { |
ProfileTree::ProfileTree() |
- : root_entry_(Logger::FUNCTION_TAG, |
- "", |
- "(root)", |
- "", |
- 0, |
- TokenEnumerator::kNoSecurityToken), |
+ : root_entry_(Logger::FUNCTION_TAG, "", "(root)"), |
next_node_id_(1), |
root_(new ProfileNode(this, &root_entry_)) { |
} |
@@ -797,9 +794,9 @@ CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag, |
CodeEntry* entry = new CodeEntry(tag, |
CodeEntry::kEmptyNamePrefix, |
GetFunctionName(name), |
+ TokenEnumerator::kNoSecurityToken, |
GetName(resource_name), |
- line_number, |
- TokenEnumerator::kNoSecurityToken); |
+ line_number); |
code_entries_.Add(entry); |
return entry; |
} |
@@ -809,10 +806,7 @@ CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag, |
const char* name) { |
CodeEntry* entry = new CodeEntry(tag, |
CodeEntry::kEmptyNamePrefix, |
- GetFunctionName(name), |
- "", |
- v8::CpuProfileNode::kNoLineNumberInfo, |
- TokenEnumerator::kNoSecurityToken); |
+ GetFunctionName(name)); |
code_entries_.Add(entry); |
return entry; |
} |
@@ -824,8 +818,6 @@ CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag, |
CodeEntry* entry = new CodeEntry(tag, |
name_prefix, |
GetName(name), |
- "", |
- v8::CpuProfileNode::kNoLineNumberInfo, |
TokenEnumerator::kInheritsSecurityToken); |
code_entries_.Add(entry); |
return entry; |
@@ -837,8 +829,6 @@ CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag, |
CodeEntry* entry = new CodeEntry(tag, |
"args_count: ", |
GetName(args_count), |
- "", |
- v8::CpuProfileNode::kNoLineNumberInfo, |
TokenEnumerator::kInheritsSecurityToken); |
code_entries_.Add(entry); |
return entry; |