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

Unified Diff: runtime/vm/flow_graph_compiler.h

Issue 10982088: Remove deoptimization index PC descriptors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove code from an unrelated change. Created 8 years, 3 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
Index: runtime/vm/flow_graph_compiler.h
diff --git a/runtime/vm/flow_graph_compiler.h b/runtime/vm/flow_graph_compiler.h
index 7b09544c6219518fd91d75a14c6d389bfcd3b8a0..8caf5b70d7ae258d8a1207dc7bb4a1740aec4ff2 100644
--- a/runtime/vm/flow_graph_compiler.h
+++ b/runtime/vm/flow_graph_compiler.h
@@ -62,11 +62,10 @@ class ParallelMoveResolver : public ValueObject {
class CompilerDeoptInfo : public ZoneAllocated {
public:
CompilerDeoptInfo(intptr_t deopt_id, DeoptReasonId reason)
- : deopt_id_(deopt_id), reason_(reason), deoptimization_env_(NULL) {}
-
- void set_deoptimization_env(Environment* env) {
- deoptimization_env_ = env;
- }
+ : pc_offset_(-1),
+ deopt_id_(deopt_id),
+ reason_(reason),
+ deoptimization_env_(NULL) {}
RawDeoptInfo* CreateDeoptInfo(FlowGraphCompiler* compiler);
@@ -81,11 +80,18 @@ class CompilerDeoptInfo : public ZoneAllocated {
const Function& function,
intptr_t slot_ix);
+ intptr_t pc_offset() const { return pc_offset_; }
+ void set_pc_offset(intptr_t offset) { pc_offset_ = offset; }
+
intptr_t deopt_id() const { return deopt_id_; }
+
DeoptReasonId reason() const { return reason_; }
+
const Environment* deoptimization_env() const { return deoptimization_env_; }
+ void set_deoptimization_env(Environment* env) { deoptimization_env_ = env; }
private:
+ intptr_t pc_offset_;
const intptr_t deopt_id_;
const DeoptReasonId reason_;
Environment* deoptimization_env_;

Powered by Google App Engine
This is Rietveld 408576698