Index: runtime/vm/flow_graph_compiler.cc |
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
index 4c6b4b7f32cd63a9a9bb35b52d880fb34838d7d1..d43c6847cbf498dfc24153d3a556425ca5823abb 100644 |
--- a/runtime/vm/flow_graph_compiler.cc |
+++ b/runtime/vm/flow_graph_compiler.cc |
@@ -1089,6 +1089,11 @@ void FlowGraphCompiler::GenerateInstanceCall( |
intptr_t argument_count, |
LocationSummary* locs, |
const ICData& ic_data) { |
+ if (Compiler::always_optimize()) { |
+ EmitSwitchableInstanceCall(ic_data, argument_count, |
+ deopt_id, token_pos, locs); |
+ return; |
+ } |
if (FLAG_always_megamorphic_calls) { |
EmitMegamorphicInstanceCall(ic_data, argument_count, |
deopt_id, token_pos, locs); |