| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 98786e09ce844472adf9bfe0d3363e1394e2c686..aea889f8beaf27d258503d6b8c8ae195ae481c9d 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -114,7 +114,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_counting_profiler &&
|
| + return FLAG_self_optimization &&
|
| FLAG_crankshaft &&
|
| !Serializer::enabled() &&
|
| !function()->flags()->Contains(kDontSelfOptimize) &&
|
|
|