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
This commit is contained in:
fschneider@chromium.org 2011-09-17 12:29:16 +00:00
parent 42f0a73a96
commit 5cf540acce

View File

@ -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;
}