Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: src/hydrogen.cc

Issue 561103002: Inlining builtin functions when inlining cumulative nodes size exceeds (Closed) Base URL: http://github.com/v8/v8@bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698