Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index 9ee6365a49ef934c08e2d520cb0434d7fffb6d8a..b5d2fc3ee3a0c7d3b126875bd479e6f225f333f7 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -637,10 +637,9 @@ class CallSiteInliner : public ValueObject { |
return false; |
} |
- // Function has no type feedback. With precompilation we don't rely on |
- // type feedback. |
- if (!FLAG_precompiled_mode && |
- function.ic_data_array() == Object::null()) { |
+ // Do not rely on function type feedback or presence of code to determine |
+ // if a function was compiled. |
+ if (!FLAG_precompiled_mode && !function.was_compiled()) { |
TRACE_INLINING(THR_Print(" Bailout: not compiled yet\n")); |
PRINT_INLINING_TREE("Not compiled", |
&call_data->caller, &function, call_data->call); |