Index: src/profile-generator-inl.h |
diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h |
index 090ad8f30e57a9091007792af003ff752a3b500e..5e92be47017b178971e348fb983505ecdf3b5921 100644 |
--- a/src/profile-generator-inl.h |
+++ b/src/profile-generator-inl.h |
@@ -34,6 +34,17 @@ namespace v8 { |
namespace internal { |
+CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, |
+ const char* name, |
+ const char* resource_name, |
+ int line_number) |
+ : tag_(tag), |
+ name_(name), |
+ resource_name_(resource_name), |
+ line_number_(line_number) { |
+} |
+ |
+ |
bool CodeEntry::is_js_function() { |
return tag_ == Logger::FUNCTION_TAG |
|| tag_ == Logger::LAZY_COMPILE_TAG |
@@ -41,24 +52,6 @@ bool CodeEntry::is_js_function() { |
} |
-StaticNameCodeEntry::StaticNameCodeEntry(Logger::LogEventsAndTags tag, |
- const char* name) |
- : CodeEntry(tag), |
- name_(name) { |
-} |
- |
- |
-ManagedNameCodeEntry::ManagedNameCodeEntry(Logger::LogEventsAndTags tag, |
- String* name, |
- const char* resource_name, |
- int line_number) |
- : CodeEntry(tag), |
- name_(name->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL).Detach()), |
- resource_name_(resource_name), |
- line_number_(line_number) { |
-} |
- |
- |
ProfileNode::ProfileNode(CodeEntry* entry) |
: entry_(entry), |
total_ticks_(0), |