Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index dc82b8fbb36b6c457a7e1ad1743d75280da1cb2d..32570286b3a4d36e101062ac3143e898789b85b2 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -240,7 +240,7 @@ OptimizingCompiler::Status OptimizingCompiler::CreateGraph() { |
// Limit the number of times we re-compile a functions with |
// the optimizing compiler. |
const int kMaxOptCount = |
- FLAG_deopt_every_n_times == 0 ? Compiler::kDefaultMaxOptCount : 1000; |
+ FLAG_deopt_every_n_times == 0 ? FLAG_max_opt_count : 1000; |
if (info()->shared_info()->opt_count() > kMaxOptCount) { |
return AbortOptimization(); |
} |