Reviewers: Vyacheslav Egorov,
Description:
Limit depth of inlining for --stress-opt runs to avoid going into infinite
recursion.
Please review this at http://codereview.chromium.org/8060033/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/hydrogen.cc
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;
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev