Chromium Code Reviews| Index: runtime/vm/flow_graph_inliner.cc |
| =================================================================== |
| --- runtime/vm/flow_graph_inliner.cc (revision 41134) |
| +++ runtime/vm/flow_graph_inliner.cc (working copy) |
| @@ -764,11 +764,12 @@ |
| &call_data->caller, &function, call_data->call); |
| return false; |
| } |
| - |
| - if (function.IsInvokeFieldDispatcher() || |
| - function.IsNoSuchMethodDispatcher()) { |
| + if ((GrowthFactor() < 10.0) && |
|
Florian Schneider
2014/10/16 10:34:33
We need to avoid infinite recursion, but not sure
|
| + (function.IsInvokeFieldDispatcher() || |
| + function.IsNoSuchMethodDispatcher())) { |
| // Append call sites to the currently processed list so that dispatcher |
| // methods get inlined regardless of the current depth. |
| + // Use GrowthFactor to prevent endless recursive inlining. |
| inlining_call_sites_->FindCallSites(callee_graph, |
| 0, |
| &inlined_info_); |