Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index de7ba1d0c5bf35528c3c10300b10e692c4e9238b..32340f284c27466a4382fe733c04e1ba42f8dc1f 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6353,11 +6353,11 @@ bool HOptimizedGraphBuilder::TryInline(CallKind call_kind, |
#endif |
- // Don't inline deeper than kMaxInliningLevels calls. |
+ // Don't inline deeper than the maximum number of inlining levels. |
HEnvironment* env = environment(); |
int current_level = 1; |
while (env->outer() != NULL) { |
- if (current_level == Compiler::kMaxInliningLevels) { |
+ if (current_level == FLAG_max_inlining_levels) { |
TraceInline(target, caller, "inline depth limit reached"); |
return false; |
} |