| Index: src/compilation-info.cc
|
| diff --git a/src/compilation-info.cc b/src/compilation-info.cc
|
| index e8d460771370216641e51aaf2ca4978941c918e1..0a9ce310a7fc592742ae1c2994be8b0ab2257eba 100644
|
| --- a/src/compilation-info.cc
|
| +++ b/src/compilation-info.cc
|
| @@ -124,7 +124,7 @@ bool CompilationInfo::is_this_defined() const { return !IsStub(); }
|
| // profiler, so they trigger their own optimization when they're called
|
| // for the SharedFunctionInfo::kCallsUntilPrimitiveOptimization-th time.
|
| bool CompilationInfo::ShouldSelfOptimize() {
|
| - return FLAG_crankshaft &&
|
| + return FLAG_opt && FLAG_crankshaft &&
|
| !(literal()->flags() & AstProperties::kDontSelfOptimize) &&
|
| !literal()->dont_optimize() &&
|
| literal()->scope()->AllowsLazyCompilation() &&
|
|
|