Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: src/deoptimizer.h

Issue 1973993002: [compiler] Profiler reconstructs inlined frames for deopts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix build. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698