Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 874c775180de335ef7d8b816dc469e0a3699ece9..d1488dd9d03ca8cb67f33841a7f38c33e9965ec3 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10620,8 +10620,8 @@ void SharedFunctionInfo::InitFromFunctionLiteral( |
if (lit->dont_optimize_reason() != kNoReason) { |
shared_info->DisableOptimization(lit->dont_optimize_reason()); |
} |
- shared_info->set_dont_crankshaft( |
- lit->flags()->Contains(AstPropertiesFlag::kDontCrankshaft)); |
+ shared_info->set_dont_crankshaft(lit->flags() & |
+ AstProperties::kDontCrankshaft); |
shared_info->set_kind(lit->kind()); |
shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
shared_info->set_asm_function(lit->scope()->asm_function()); |