| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index ec402fa82209339f2bddfcee9066b7e17ef90763..e043d7d8c3bea49c3a578d6c25847add39572f31 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -495,18 +495,6 @@ void InsertCodeIntoOptimizedCodeMap(CompilationInfo* info) {
|
| 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;
|
| -
|
| - // Cache optimized (native) context-independent code.
|
| - if (FLAG_turbo_cache_shared_code && code->is_turbofanned() &&
|
| - !info->is_native_context_specializing()) {
|
| - DCHECK(!info->is_function_context_specializing());
|
| - DCHECK(info->osr_ast_id().IsNone());
|
| - Handle<SharedFunctionInfo> shared(function->shared());
|
| - SharedFunctionInfo::AddSharedCodeToOptimizedCodeMap(shared, code);
|
| - }
|
| }
|
|
|
| bool Renumber(ParseInfo* parse_info) {
|
|
|