| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index ce3d368a715bdeb8dbe42a21179a3fa13800fb45..651dc48018f74bb9d008d90be4d728197465b025 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -7753,7 +7753,8 @@ 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,
|
| + if (nodes_added > 0 &&
|
| + inlined_count_ > Min(FLAG_max_inlined_nodes_cumulative,
|
| kUnlimitedMaxInlinedNodesCumulative)) {
|
| TraceInline(target, caller, "cumulative AST node limit reached");
|
| return false;
|
|
|