Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: src/profile-generator.h

Issue 17836002: CPUProfiler: Simplify CodeEntry constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: win debug bot fix Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profile-generator.h
diff --git a/src/profile-generator.h b/src/profile-generator.h
index 7a5e1f2fc56ed90d61840356b15da63d51f297c4..f8534e4c3fdb17a3527889480043f1ba35121180 100644
--- a/src/profile-generator.h
+++ b/src/profile-generator.h
@@ -99,9 +99,9 @@ class CodeEntry {
INLINE(CodeEntry(Logger::LogEventsAndTags tag,
const char* name_prefix,
const char* name,
- const char* resource_name,
- int line_number,
- int security_token_id));
+ int security_token_id = TokenEnumerator::kNoSecurityToken,
+ const char* resource_name = CodeEntry::kEmptyResourceName,
+ int line_number = v8::CpuProfileNode::kNoLineNumberInfo));
~CodeEntry();
INLINE(bool is_js_function() const) { return is_js_function_tag(tag_); }
@@ -125,6 +125,7 @@ class CodeEntry {
bool IsSameAs(CodeEntry* entry) const;
static const char* const kEmptyNamePrefix;
+ static const char* const kEmptyResourceName;
private:
Logger::LogEventsAndTags tag_;
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698