| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 57be6b4051043c1d21efd8e3fac9ee5a78c51074..7291bd1786c5d64bb4d3682a942b907854f2a37b 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -7885,7 +7885,9 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target,
|
| }
|
|
|
| // We don't want to add more than a certain number of nodes from inlining.
|
| - if (inlined_count_ > Min(FLAG_max_inlined_nodes_cumulative,
|
| + // Always inline small methods (<= 10 nodes).
|
| + if (nodes_added > 10 &&
|
| + inlined_count_ > Min(FLAG_max_inlined_nodes_cumulative,
|
| kUnlimitedMaxInlinedNodesCumulative)) {
|
| TraceInline(target, caller, "cumulative AST node limit reached");
|
| return false;
|
|
|