Index: runtime/vm/kernel_to_il.cc |
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc |
index e700fb5ff85a29d333493e33332c171e16528ce3..c6cd622287976ae09b53ccb32eff85eb258f4cea 100644 |
--- a/runtime/vm/kernel_to_il.cc |
+++ b/runtime/vm/kernel_to_il.cc |
@@ -2914,6 +2914,13 @@ dart::LocalVariable* FlowGraphBuilder::LookupVariable( |
} |
+dart::LocalVariable* FlowGraphBuilder::LookupVariable(intptr_t kernel_offset) { |
+ LocalVariable* local = scopes_->locals.Lookup(kernel_offset); |
+ ASSERT(local != NULL); |
+ return local; |
+} |
+ |
+ |
void FlowGraphBuilder::SetTempIndex(Definition* definition) { |
definition->set_temp_index( |
stack_ == NULL ? 0 : stack_->definition()->temp_index() + 1); |
@@ -4639,7 +4646,7 @@ void FlowGraphBuilder::VisitTypeLiteral(TypeLiteral* node) { |
void FlowGraphBuilder::VisitVariableGet(VariableGet* node) { |
- fragment_ = LoadLocal(LookupVariable(node->variable())); |
+ fragment_ = streaming_flow_graph_builder_->BuildAt(node->kernel_offset()); |
} |