Index: src/hydrogen.cc |
=================================================================== |
--- src/hydrogen.cc (revision 9462) |
+++ src/hydrogen.cc (working copy) |
@@ -4559,7 +4559,9 @@ |
HEnvironment* env = environment(); |
int current_level = 1; |
while (env->outer() != NULL) { |
- if (FLAG_limit_inlining && current_level == Compiler::kMaxInliningLevels) { |
+ if (current_level == (FLAG_limit_inlining |
+ ? Compiler::kMaxInliningLevels |
+ : 2 * Compiler::kMaxInliningLevels)) { |
TraceInline(target, caller, "inline depth limit reached"); |
return false; |
} |