| Index: runtime/vm/flow_graph_compiler.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_compiler.cc (revision 24306)
|
| +++ runtime/vm/flow_graph_compiler.cc (working copy)
|
| @@ -616,8 +616,13 @@
|
| const Array& arguments_descriptor =
|
| Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
|
| argument_names));
|
| - EmitStaticCall(function, arguments_descriptor, argument_count,
|
| - deopt_id, token_pos, locs);
|
| + if (is_optimizing()) {
|
| + EmitStaticCall(function, arguments_descriptor, argument_count,
|
| + deopt_id, token_pos, locs);
|
| + } else {
|
| + EmitUnoptimizedStaticCall(function, arguments_descriptor, argument_count,
|
| + deopt_id, token_pos, locs);
|
| + }
|
| }
|
|
|
|
|
|
|