Index: runtime/vm/kernel_to_il.cc |
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc |
index e817840567c9ea8c9600bd56c5488da07098fe54..698b930d140b81ec33f8a8c4255ff73cffc93dda 100644 |
--- a/runtime/vm/kernel_to_il.cc |
+++ b/runtime/vm/kernel_to_il.cc |
@@ -5600,8 +5600,8 @@ void FlowGraphBuilder::VisitForInStatement(ForInStatement* node) { |
const dart::String& iterator_getter = dart::String::ZoneHandle( |
Z, dart::Field::GetterSymbol(Symbols::Iterator())); |
- instructions += |
- InstanceCall(TokenPosition::kNoSource, iterator_getter, Token::kGET, 1); |
+ instructions += InstanceCall(node->iterable()->position(), iterator_getter, |
+ Token::kGET, 1); |
LocalVariable* iterator = scopes_->iterator_variables[for_in_depth_]; |
instructions += StoreLocal(TokenPosition::kNoSource, iterator); |
instructions += Drop(); |
@@ -5610,7 +5610,7 @@ void FlowGraphBuilder::VisitForInStatement(ForInStatement* node) { |
++loop_depth_; |
Fragment condition = LoadLocal(iterator); |
condition += PushArgument(); |
- condition += InstanceCall(TokenPosition::kNoSource, Symbols::MoveNext(), |
+ condition += InstanceCall(node->iterable()->position(), Symbols::MoveNext(), |
Token::kILLEGAL, 1); |
TargetEntryInstr* body_entry; |
TargetEntryInstr* loop_exit; |
@@ -5622,8 +5622,7 @@ void FlowGraphBuilder::VisitForInStatement(ForInStatement* node) { |
body += PushArgument(); |
const dart::String& current_getter = dart::String::ZoneHandle( |
Z, dart::Field::GetterSymbol(Symbols::Current())); |
- body += |
- InstanceCall(TokenPosition::kNoSource, current_getter, Token::kGET, 1); |
+ body += InstanceCall(node->position(), current_getter, Token::kGET, 1); |
body += |
StoreLocal(TokenPosition::kNoSource, LookupVariable(node->variable())); |
body += Drop(); |