Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4c32fc52713b9b66f52c9ac2d7485745ab92ff79..2a2b5ed971c647f44f04486928315e6193260be8 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10598,7 +10598,6 @@ CodeAndLiterals SharedFunctionInfo::SearchOptimizedCodeMap( |
Context* native_context, BailoutId osr_ast_id) { |
DisallowHeapAllocation no_gc; |
DCHECK(native_context->IsNativeContext()); |
- if (!FLAG_cache_optimized_code) return {nullptr, nullptr}; |
Object* value = optimized_code_map(); |
if (!value->IsSmi()) { |
FixedArray* optimized_code_map = FixedArray::cast(value); |