| Index: runtime/vm/flow_graph_compiler.cc
|
| diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
|
| index f22a000d131b51b26f0d94b4979bed1170cfa2d2..f91eb1167bee3662660f60cd2f6b75c4e141841f 100644
|
| --- a/runtime/vm/flow_graph_compiler.cc
|
| +++ b/runtime/vm/flow_graph_compiler.cc
|
| @@ -108,9 +108,8 @@ RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler) {
|
| builder.AddCopy(inner->LocationAt(i), *inner->ValueAt(i), slot_ix++);
|
| }
|
|
|
| - // Set the locals, not including the outgoing arguments.
|
| - ASSERT(current->Length() >= inner->fixed_parameter_count());
|
| - for (intptr_t i = current->Length() - inner->fixed_parameter_count() - 1;
|
| + // Set the locals, note that outgoing arguments are not in the environment.
|
| + for (intptr_t i = current->Length() - 1;
|
| i >= current->fixed_parameter_count();
|
| i--) {
|
| builder.AddCopy(current->LocationAt(i), *current->ValueAt(i), slot_ix++);
|
|
|