Chromium Code Reviews| Index: src/profile-generator-inl.h |
| diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h |
| index 58c124fe62b85e4f87cc9603c490b0141a8779da..102cc84317ecf81687f093ddb2e5e4a4fdc9853f 100644 |
| --- a/src/profile-generator-inl.h |
| +++ b/src/profile-generator-inl.h |
| @@ -15,7 +15,8 @@ CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, |
| const char* name_prefix, |
| const char* resource_name, |
| int line_number, |
| - int column_number) |
| + int column_number, |
| + JITLineInfoTable* line_info) |
| : tag_(tag), |
| builtin_id_(Builtins::builtin_count), |
| name_prefix_(name_prefix), |
| @@ -26,7 +27,11 @@ CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, |
| shared_id_(0), |
| script_id_(v8::UnboundScript::kNoScriptId), |
| no_frame_ranges_(NULL), |
| - bailout_reason_(kEmptyBailoutReason) { } |
| + bailout_reason_(kEmptyBailoutReason) { |
| + if (NULL != line_info) { |
|
alph
2014/07/29 12:55:56
style nit: NULL to the right hand side
|
| + line_info_ = *line_info; |
| + } |
| +} |
| bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { |
| @@ -39,12 +44,18 @@ bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { |
| } |
| +static bool LineTickMatch(void* a, void* b) { |
| + return a == b; |
| +} |
| + |
| + |
| ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry) |
| : tree_(tree), |
| entry_(entry), |
| self_ticks_(0), |
| children_(CodeEntriesMatch), |
| - id_(tree->next_node_id()) { } |
| + id_(tree->next_node_id()), |
| + line_ticks_(LineTickMatch) { } |
| } } // namespace v8::internal |