Index: runtime/vm/kernel_to_il.h |
diff --git a/runtime/vm/kernel_to_il.h b/runtime/vm/kernel_to_il.h |
index ae0db180c64fcf424319616ce136a4bf86aee3d3..cc3f0069abbbac382eb681a24ee54029391fca9b 100644 |
--- a/runtime/vm/kernel_to_il.h |
+++ b/runtime/vm/kernel_to_il.h |
@@ -1042,6 +1042,7 @@ class FlowGraphBuilder : public ExpressionVisitor, public StatementVisitor { |
void InlineBailout(const char* reason); |
TranslationHelper translation_helper_; |
+ Thread* thread_; |
Zone* zone_; |
// The node we are currently compiling (e.g. FunctionNode, Constructor, |
@@ -1056,6 +1057,11 @@ class FlowGraphBuilder : public ExpressionVisitor, public StatementVisitor { |
intptr_t next_block_id_; |
intptr_t AllocateBlockId() { return next_block_id_++; } |
+ intptr_t GetNextDeoptId() { |
+ // TODO(rmacnak): Record current scope / context level. |
+ return thread_->GetNextDeoptId(); |
+ } |
+ |
intptr_t next_function_id_; |
intptr_t AllocateFunctionId() { return next_function_id_++; } |