Index: src/profile-generator.h |
diff --git a/src/profile-generator.h b/src/profile-generator.h |
index 38451d11b7579d09866960888bd7191d38d03fb0..2783a08806e1b00fe73db35e2dcc761225429c8b 100644 |
--- a/src/profile-generator.h |
+++ b/src/profile-generator.h |
@@ -120,6 +120,9 @@ class CodeEntry { |
no_frame_ranges_ = ranges; |
} |
+ void SetBuiltinId(Builtins::Name id); |
+ Builtins::Name builtin_id() const { return builtin_id_; } |
+ |
void CopyData(const CodeEntry& source); |
uint32_t GetCallUid() const; |
bool IsSameAs(CodeEntry* entry) const; |
@@ -128,7 +131,8 @@ class CodeEntry { |
static const char* const kEmptyResourceName; |
private: |
- Logger::LogEventsAndTags tag_; |
+ Logger::LogEventsAndTags tag_ : 8; |
+ Builtins::Name builtin_id_ : 8; |
const char* name_prefix_; |
const char* name_; |
const char* resource_name_; |
@@ -422,6 +426,9 @@ class ProfileGenerator { |
static const char* const kAnonymousFunctionName; |
static const char* const kProgramEntryName; |
static const char* const kGarbageCollectorEntryName; |
+ // Used to represent frames for which we have no reliable way to |
+ // detect function. |
+ static const char* const kUnresolvedFunctionName; |
private: |
INLINE(CodeEntry* EntryForVMState(StateTag tag)); |
@@ -430,6 +437,7 @@ class ProfileGenerator { |
CodeMap code_map_; |
CodeEntry* program_entry_; |
CodeEntry* gc_entry_; |
+ CodeEntry* unresolved_entry_; |
SampleRateCalculator sample_rate_calc_; |
DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |