Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 83f9ab2daffb78830e80a50e4aefe2aa171af624..a8e5f1aa0364742e50c25066de5b6cc20a67155c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -235,8 +235,7 @@ void CompilationInfo::DisableOptimization() { |
// profiler, so they trigger their own optimization when they're called |
// for the SharedFunctionInfo::kCallsUntilPrimitiveOptimization-th time. |
bool CompilationInfo::ShouldSelfOptimize() { |
- return FLAG_self_optimization && |
- FLAG_crankshaft && |
+ return FLAG_crankshaft && |
!function()->flags()->Contains(kDontSelfOptimize) && |
!function()->dont_optimize() && |
function()->scope()->AllowsLazyCompilation() && |