Revision: 9464
Author: [email protected]
Date: Wed Sep 28 04:34:54 2011
Log: Limit depth of inlining for --stress-opt runs to avoid going into
infinite recursion.
Review URL: http://codereview.chromium.org/8060033
http://code.google.com/p/v8/source/detail?r=9464
Modified:
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Tue Sep 27 06:03:19 2011
+++ /branches/bleeding_edge/src/hydrogen.cc Wed Sep 28 04:34:54 2011
@@ -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;
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev