Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 5d7dbd1624ce127774ee63f5ae8631420e639734..cbf53a5e86e90cc1ec28c019aa1ffef0c307d734 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -118,6 +118,7 @@ bool CompilationInfo::ShouldSelfOptimize() { |
FLAG_crankshaft && |
!Serializer::enabled() && |
!function()->flags()->Contains(kDontSelfOptimize) && |
+ !function()->flags()->Contains(kDontOptimize) && |
(shared_info().is_null() || !shared_info()->optimization_disabled()); |
} |