Partial revert of crrev.com/900553003, to unbreak arm64 build.
authorDaniel Vogelheim <vogelheim@chromium.org>
Tue, 3 Feb 2015 17:03:40 +0000 (18:03 +0100)
committerDaniel Vogelheim <vogelheim@chromium.org>
Tue, 3 Feb 2015 17:04:05 +0000 (17:04 +0000)
R=verwaest@chromium.org
BUG=454625
NOTREECHECKS=true

Review URL: https://codereview.chromium.org/892833003

Cr-Commit-Position: refs/heads/master@{#26407}

src/hydrogen.cc

index 7291bd1..4a6d303 100644 (file)
@@ -7886,8 +7886,7 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target,
 
   // We don't want to add more than a certain number of nodes from inlining.
   // Always inline small methods (<= 10 nodes).
-  if (nodes_added > 10 &&
-      inlined_count_ > Min(FLAG_max_inlined_nodes_cumulative,
+  if (inlined_count_ > Min(FLAG_max_inlined_nodes_cumulative,
                            kUnlimitedMaxInlinedNodesCumulative)) {
     TraceInline(target, caller, "cumulative AST node limit reached");
     return false;