Index: src/profile-generator-inl.h |
diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h |
index d9f55dd44b9e90c2fee144e9b31f550a2b4bf295..d6d38e3f6cc3ff46e45f81d864224d3eaf240d50 100644 |
--- a/src/profile-generator-inl.h |
+++ b/src/profile-generator-inl.h |
@@ -21,8 +21,8 @@ CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, const char* name, |
resource_name_(resource_name), |
line_number_(line_number), |
column_number_(column_number), |
- shared_id_(0), |
script_id_(v8::UnboundScript::kNoScriptId), |
+ position_(0), |
no_frame_ranges_(NULL), |
bailout_reason_(kEmptyBailoutReason), |
deopt_reason_(kNoDeoptReason), |
@@ -48,6 +48,11 @@ ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry) |
children_(CodeEntriesMatch), |
id_(tree->next_node_id()), |
line_ticks_(LineTickMatch) {} |
+ |
+ |
+inline unsigned ProfileNode::function_id() const { |
+ return tree_->GetFunctionId(this); |
+} |
} } // namespace v8::internal |
#endif // V8_PROFILE_GENERATOR_INL_H_ |