Index: src/deoptimizer.h |
diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
index 45aecddb16656033df7d48f0de5d6aaca28b0085..ae65e0070ffeb46345c0b19a7cd8da54b2e62c65 100644 |
--- a/src/deoptimizer.h |
+++ b/src/deoptimizer.h |
@@ -410,16 +410,21 @@ class Deoptimizer : public Malloced { |
static const char* GetDeoptReason(DeoptReason deopt_reason); |
struct DeoptInfo { |
- DeoptInfo(SourcePosition position, DeoptReason d, int inlining_id) |
- : position(position), deopt_reason(d), inlining_id(inlining_id) {} |
+ DeoptInfo(SourcePosition position, DeoptReason deopt_reason, int deopt_id) |
+ : position(position), deopt_reason(deopt_reason), deopt_id(deopt_id) {} |
SourcePosition position; |
DeoptReason deopt_reason; |
- int inlining_id; |
+ int deopt_id; |
+ |
+ static const int kNoDeoptId = -1; |
}; |
static DeoptInfo GetDeoptInfo(Code* code, byte* from); |
+ static int ComputeSourcePosition(SharedFunctionInfo* shared, |
+ BailoutId node_id); |
+ |
struct JumpTableEntry : public ZoneObject { |
inline JumpTableEntry(Address entry, const DeoptInfo& deopt_info, |
Deoptimizer::BailoutType type, bool frame) |