| Index: runtime/vm/flow_graph_inliner.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_inliner.cc (revision 20359)
|
| +++ runtime/vm/flow_graph_inliner.cc (working copy)
|
| @@ -37,6 +37,8 @@
|
| DEFINE_FLAG(int, inlining_hotness, 10,
|
| "Inline only hotter calls, in percents (0 .. 100); "
|
| "default 10%: calls above-equal 10% of max-count are inlined.");
|
| +DEFINE_FLAG(bool, inline_recursive, true,
|
| + "Inline recursive calls.");
|
|
|
| DECLARE_FLAG(bool, print_flow_graph);
|
| DECLARE_FLAG(bool, print_flow_graph_optimized);
|
| @@ -393,7 +395,7 @@
|
| }
|
|
|
| // Abort if this is a recursive occurrence.
|
| - if (IsCallRecursive(function, call)) {
|
| + if (!FLAG_inline_recursive && IsCallRecursive(function, call)) {
|
| function.set_is_inlinable(false);
|
| TRACE_INLINING(OS::Print(" Bailout: recursive function\n"));
|
| return false;
|
|
|