Index: runtime/vm/flow_graph_compiler.cc |
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
index e668652800e57bd2b4e06f7f0cceb8cab3df0a59..4e0d2c773a9e85398e0f0a3c5988db5f30b6b7c4 100644 |
--- a/runtime/vm/flow_graph_compiler.cc |
+++ b/runtime/vm/flow_graph_compiler.cc |
@@ -536,7 +536,10 @@ void FlowGraphCompiler::VisitBlocks() { |
entry->set_offset(assembler()->CodeSize()); |
BeginCodeSourceRange(); |
+ ASSERT(pending_deoptimization_env_ == NULL); |
+ pending_deoptimization_env_ = entry->env(); |
entry->EmitNativeCode(this); |
+ pending_deoptimization_env_ = NULL; |
EndCodeSourceRange(entry->token_pos()); |
// Compile all successors until an exit, branch, or a block entry. |
for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { |
@@ -805,8 +808,7 @@ void FlowGraphCompiler::AddStubCallTarget(const Code& code) { |
} |
-void FlowGraphCompiler::AddDeoptIndexAtCall(intptr_t deopt_id, |
- TokenPosition token_pos) { |
+void FlowGraphCompiler::AddDeoptIndexAtCall(intptr_t deopt_id) { |
ASSERT(is_optimizing()); |
ASSERT(!intrinsic_mode()); |
CompilerDeoptInfo* info = |