| Index: src/profile-generator.h
|
| diff --git a/src/profile-generator.h b/src/profile-generator.h
|
| index 1ce19409069af802a72a2bc7d6ac185b8bbcfa35..e013e29c5db77a1e9852c5a9ef691f789cb96e77 100644
|
| --- a/src/profile-generator.h
|
| +++ b/src/profile-generator.h
|
| @@ -34,6 +34,16 @@
|
| typedef std::map<int, int> PcOffsetMap;
|
| PcOffsetMap pc_offset_map_;
|
| DISALLOW_COPY_AND_ASSIGN(JITLineInfoTable);
|
| +};
|
| +
|
| +
|
| +struct DeoptInfo {
|
| + const char* deopt_reason;
|
| + struct Frame {
|
| + int script_id;
|
| + int position;
|
| + };
|
| + std::vector<Frame> stack;
|
| };
|
|
|
|
|
| @@ -73,7 +83,7 @@
|
| deopt_position_ = position;
|
| pc_offset_ = pc_offset;
|
| }
|
| - CpuProfileDeoptInfo GetDeoptInfo();
|
| + DeoptInfo GetDeoptInfo();
|
| const char* deopt_reason() const { return deopt_reason_; }
|
| SourcePosition deopt_position() const { return deopt_position_; }
|
| bool has_deopt_info() const { return !deopt_position_.IsUnknown(); }
|
| @@ -163,9 +173,7 @@
|
| bool GetLineTicks(v8::CpuProfileNode::LineTick* entries,
|
| unsigned int length) const;
|
| void CollectDeoptInfo(CodeEntry* entry);
|
| - const std::vector<CpuProfileDeoptInfo>& deopt_infos() const {
|
| - return deopt_infos_;
|
| - }
|
| + const std::vector<DeoptInfo>& deopt_infos() const { return deopt_infos_; }
|
|
|
| void Print(int indent);
|
|
|
| @@ -188,7 +196,7 @@
|
| unsigned id_;
|
| HashMap line_ticks_;
|
|
|
| - std::vector<CpuProfileDeoptInfo> deopt_infos_;
|
| + std::vector<DeoptInfo> deopt_infos_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ProfileNode);
|
| };
|
|
|