Index: src/profile-generator.h |
diff --git a/src/profile-generator.h b/src/profile-generator.h |
index 38d1654b2a229e262d58f0c1b9142b7fc984ab2a..79bef0921dcb3ae567c96c3c06e25c6557284f1f 100644 |
--- a/src/profile-generator.h |
+++ b/src/profile-generator.h |
@@ -44,7 +44,7 @@ class CodeEntry { |
const char* resource_name, |
int line_number)); |
- INLINE(bool is_js_function() const); |
+ INLINE(bool is_js_function() const) { return is_js_function_tag(tag_); } |
INLINE(const char* name_prefix() const) { return name_prefix_; } |
INLINE(bool has_name_prefix() const) { return name_prefix_[0] != '\0'; } |
INLINE(const char* name() const) { return name_; } |
@@ -52,6 +52,8 @@ class CodeEntry { |
INLINE(int line_number() const) { return line_number_; } |
INLINE(unsigned call_uid() const) { return call_uid_; } |
+ INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); |
+ |
static const char* kEmptyNamePrefix; |
private: |
@@ -223,7 +225,8 @@ class CpuProfilesCollection { |
void AddPathToCurrentProfiles(const Vector<CodeEntry*>& path); |
private: |
- const char* GetFunctionName(String* name); |
+ INLINE(const char* GetFunctionName(String* name)); |
+ INLINE(const char* GetFunctionName(const char* name)); |
const char* GetName(String* name); |
const char* GetName(int args_count); |
@@ -284,10 +287,17 @@ class ProfileGenerator { |
INLINE(CodeMap* code_map()) { return &code_map_; } |
+ static const char* kAnonymousFunctionName; |
+ static const char* kProgramEntryName; |
+ static const char* kGarbageCollectorEntryName; |
+ |
private: |
+ INLINE(CodeEntry* EntryForVMState(StateTag tag)); |
+ |
CpuProfilesCollection* profiles_; |
CodeMap code_map_; |
CodeEntry* program_entry_; |
+ CodeEntry* gc_entry_; |
DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
}; |