Index: src/profile-generator.h |
diff --git a/src/profile-generator.h b/src/profile-generator.h |
index 9d4a7e36cb14a4c1678d85a8684e89e676f9524f..411cbdbab270c700f528a7a9ecd6077b995a0210 100644 |
--- a/src/profile-generator.h |
+++ b/src/profile-generator.h |
@@ -122,6 +122,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; |
@@ -130,7 +133,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_; |
@@ -425,6 +429,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)); |
@@ -433,6 +440,7 @@ class ProfileGenerator { |
CodeMap code_map_; |
CodeEntry* program_entry_; |
CodeEntry* gc_entry_; |
+ CodeEntry* unresolved_entry_; |
SampleRateCalculator sample_rate_calc_; |
DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |