Revision: 9314
Author:   fschnei...@chromium.org
Date:     Sat Sep 17 05:29:16 2011
Log:      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
http://code.google.com/p/v8/source/detail?r=9314

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Thu Sep 15 09:38:47 2011
+++ /branches/bleeding_edge/src/hydrogen.cc     Sat Sep 17 05:29:16 2011
@@ -4487,7 +4487,7 @@
   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;
     }

--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to