Index: src/compiler/js-inlining-heuristic.cc |
diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc |
index 942968aaa5c0fc2929f26eb9365684066a4fb808..26bacbc98a772387fc6bdd46bb43c2f3d898046a 100644 |
--- a/src/compiler/js-inlining-heuristic.cc |
+++ b/src/compiler/js-inlining-heuristic.cc |
@@ -167,7 +167,7 @@ Reduction JSInliningHeuristic::Reduce(Node* node) { |
} |
// Forcibly inline small functions here. |
- if (small_inline) { |
+ if (small_inline && cumulative_count_ <= FLAG_max_inlined_nodes_absolute) { |
TRACE("Inlining small function(s) at call site #%d:%s\n", node->id(), |
node->op()->mnemonic()); |
return InlineCandidate(candidate); |