| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index d30b96779a1f0bcb6cd34f4e11e072e4b513daf1..4f4a40afb5a60c40235d80f9b32037a49c05d1fb 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -811,13 +811,11 @@ static void InsertCodeIntoOptimizedCodeMap(CompilationInfo* info) {
|
| if (function->shared()->bound()) return;
|
|
|
| // Cache optimized context-specific code.
|
| - if (FLAG_cache_optimized_code) {
|
| - Handle<SharedFunctionInfo> shared(function->shared());
|
| - Handle<LiteralsArray> literals(function->literals());
|
| - Handle<Context> native_context(function->context()->native_context());
|
| - SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
|
| - literals, info->osr_ast_id());
|
| - }
|
| + Handle<SharedFunctionInfo> shared(function->shared());
|
| + Handle<LiteralsArray> literals(function->literals());
|
| + Handle<Context> native_context(function->context()->native_context());
|
| + SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
|
| + literals, info->osr_ast_id());
|
|
|
| // Do not cache (native) context-independent code compiled for OSR.
|
| if (code->is_turbofanned() && info->is_osr()) return;
|
|
|