Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 43d29f6f0f007bd14ebc71b27e3f587aa3898898..c66f90a65fbe2d7fc197e09e90fc20af2eec8b8a 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1346,12 +1346,11 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
LiteralsArray::New(isolate(), handle(info->feedback_vector()), |
number_of_literals, pretenure); |
result->set_literals(*literals); |
+ |
// Cache context-specific literals. |
- if (FLAG_cache_optimized_code) { |
- Handle<Context> native_context(context->native_context()); |
- SharedFunctionInfo::AddToOptimizedCodeMap( |
- info, native_context, undefined_value(), literals, BailoutId::None()); |
- } |
+ Handle<Context> native_context(context->native_context()); |
+ SharedFunctionInfo::AddToOptimizedCodeMap( |
+ info, native_context, undefined_value(), literals, BailoutId::None()); |
} |
return result; |