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

Side by Side Diff: src/profile-generator-inl.h

Issue 3426008: Show RegExp calls in the profile. (Closed)
Patch Set: Created 10 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/profile-generator.cc ('k') | test/cctest/test-profile-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 28 matching lines...) Expand all
39 return GetFunctionName(GetName(name)); 39 return GetFunctionName(GetName(name));
40 } 40 }
41 41
42 42
43 const char* StringsStorage::GetFunctionName(const char* name) { 43 const char* StringsStorage::GetFunctionName(const char* name) {
44 return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName; 44 return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName;
45 } 45 }
46 46
47 47
48 CodeEntry::CodeEntry(int security_token_id) 48 CodeEntry::CodeEntry(int security_token_id)
49 : call_uid_(0), 49 : tag_(Logger::FUNCTION_TAG),
50 tag_(Logger::FUNCTION_TAG),
51 name_prefix_(kEmptyNamePrefix), 50 name_prefix_(kEmptyNamePrefix),
52 name_(""), 51 name_(""),
53 resource_name_(""), 52 resource_name_(""),
54 line_number_(0), 53 line_number_(0),
55 security_token_id_(security_token_id) { 54 security_token_id_(security_token_id) {
56 } 55 }
57 56
58 57
59 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, 58 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
60 const char* name_prefix, 59 const char* name_prefix,
61 const char* name, 60 const char* name,
62 const char* resource_name, 61 const char* resource_name,
63 int line_number, 62 int line_number,
64 int security_token_id) 63 int security_token_id)
65 : call_uid_(next_call_uid_++), 64 : tag_(tag),
66 tag_(tag),
67 name_prefix_(name_prefix), 65 name_prefix_(name_prefix),
68 name_(name), 66 name_(name),
69 resource_name_(resource_name), 67 resource_name_(resource_name),
70 line_number_(line_number), 68 line_number_(line_number),
71 security_token_id_(security_token_id) { 69 security_token_id_(security_token_id) {
72 } 70 }
73 71
74 72
75 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { 73 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) {
76 return tag == Logger::FUNCTION_TAG 74 return tag == Logger::FUNCTION_TAG
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 return program_entry_; 137 return program_entry_;
140 default: return NULL; 138 default: return NULL;
141 } 139 }
142 } 140 }
143 141
144 } } // namespace v8::internal 142 } } // namespace v8::internal
145 143
146 #endif // ENABLE_LOGGING_AND_PROFILING 144 #endif // ENABLE_LOGGING_AND_PROFILING
147 145
148 #endif // V8_PROFILE_GENERATOR_INL_H_ 146 #endif // V8_PROFILE_GENERATOR_INL_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | test/cctest/test-profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698