Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: src/compiler.cc

Issue 2402663002: Reland "[turbofan] Discard the shared code entry in the optimized code map." (Closed)
Patch Set: Patch failure(?) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/crankshaft/hydrogen-instructions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 5b478241237bfe64b25eee1d911a2a0dbe64e77c..2ba8cf89888ddb079830980d17853468c5f240fe 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) {
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/crankshaft/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698