From 5cf540acce766ea77284f48a8237785ab2e555b7 Mon Sep 17 00:00:00 2001 From: "fschneider@chromium.org" Date: Sat, 17 Sep 2011 12:29:16 +0000 Subject: [PATCH] When --nolimit-inlining flag is set, don't limit inlining depth. This flag is used to debug problems with inlining. By default we still limit inlining to small functions and up to a maximum depth to avoid too much code size growth. Review URL: http://codereview.chromium.org/7919012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9314 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 30b395ee63..c531ee7314 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -4487,7 +4487,7 @@ bool HGraphBuilder::TryInline(Call* expr) { HEnvironment* env = environment(); int current_level = 1; while (env->outer() != NULL) { - if (current_level == Compiler::kMaxInliningLevels) { + if (FLAG_limit_inlining && current_level == Compiler::kMaxInliningLevels) { TraceInline(target, caller, "inline depth limit reached"); return false; }