Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f919c9da78d7c7539fbf04b35c30b19e3182872a..d6c4cd4e7b40e7fcd6cdd8356a67e69318ee0d66 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10869,6 +10869,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_cache( |
lit->flags()->Contains(AstPropertiesFlag::kDontCache)); |
shared_info->set_kind(lit->kind()); |