Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 0057a0b9fb3cef21a3421a5424d6cc8b7c7af20e..59548d1e5dedc7b4f4c7171cff515013d8ac7e48 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -904,8 +904,9 @@ static bool Renumber(ParseInfo* parse_info) { |
FunctionLiteral* lit = parse_info->literal(); |
shared_info->set_ast_node_count(lit->ast_node_count()); |
MaybeDisableOptimization(shared_info, lit->dont_optimize_reason()); |
- shared_info->set_dont_crankshaft(lit->flags() & |
- AstProperties::kDontCrankshaft); |
+ shared_info->set_dont_crankshaft( |
+ shared_info->dont_crankshaft() || |
+ (lit->flags() & AstProperties::kDontCrankshaft)); |
} |
return true; |
} |