| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 0f3ebe0e6726666acba53cb8745366e992aed288..cf00aed4237aa78aad264ff5e33b94adc60ecc74 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -203,7 +203,8 @@ Code::Flags CompilationInfo::flags() const {
|
| // profiler, so they trigger their own optimization when they're called
|
| // for the SharedFunctionInfo::kCallsUntilPrimitiveOptimization-th time.
|
| bool CompilationInfo::ShouldSelfOptimize() {
|
| - return FLAG_crankshaft && !function()->flags()->Contains(kDontSelfOptimize) &&
|
| + return FLAG_crankshaft &&
|
| + !(function()->flags() & AstProperties::kDontSelfOptimize) &&
|
| !function()->dont_optimize() &&
|
| function()->scope()->AllowsLazyCompilation() &&
|
| (!has_shared_info() || !shared_info()->optimization_disabled());
|
| @@ -753,7 +754,8 @@ static bool Renumber(ParseInfo* parse_info) {
|
| FunctionLiteral* lit = parse_info->function();
|
| shared_info->set_ast_node_count(lit->ast_node_count());
|
| MaybeDisableOptimization(shared_info, lit->dont_optimize_reason());
|
| - shared_info->set_dont_crankshaft(lit->flags()->Contains(kDontCrankshaft));
|
| + shared_info->set_dont_crankshaft(lit->flags() &
|
| + AstProperties::kDontCrankshaft);
|
| }
|
| return true;
|
| }
|
|
|