Index: runtime/vm/flow_graph_builder.h |
diff --git a/runtime/vm/flow_graph_builder.h b/runtime/vm/flow_graph_builder.h |
index 41f7e95af534e73e59d445c914d48d6a73229c6f..5fbc056f2966357e24e1e47cc8f956a3a1300eef 100644 |
--- a/runtime/vm/flow_graph_builder.h |
+++ b/runtime/vm/flow_graph_builder.h |
@@ -114,6 +114,11 @@ class FlowGraphBuilder : public ValueObject { |
intptr_t AllocateBlockId() { return ++last_used_block_id_; } |
void SetInitialBlockId(intptr_t id) { last_used_block_id_ = id; } |
+ intptr_t GetNextDeoptId() { |
+ // TODO(rmacnak): Record current scope / context level. |
+ return thread()->GetNextDeoptId(); |
+ } |
+ |
intptr_t context_level() const; |
void IncrementLoopDepth() { ++loop_depth_; } |