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

Unified Diff: src/runtime/runtime-compiler.cc

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/runtime/runtime.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-compiler.cc
diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc
index d3f69c23a54cb2ac33522d02f8d9b9a0449974ad..c79616873202bfd348fc4fdc89649f449028f3b5 100644
--- a/src/runtime/runtime-compiler.cc
+++ b/src/runtime/runtime-compiler.cc
@@ -34,28 +34,12 @@
// Compile the target function.
DCHECK(function->shared()->allows_lazy_compilation());
- // There is one special case where we have optimized code but we
- // couldn't find a literals array for the native context. That's with
- // FLAG_turbo_cache_shared_code.
- if (FLAG_turbo_cache_shared_code) {
- SharedFunctionInfo* shared = function->shared();
- CodeAndLiterals result;
- result = shared->SearchOptimizedCodeMap(*isolate->native_context(),
- BailoutId::None());
- if (result.code != nullptr) {
- function->ReplaceCode(result.code);
- JSFunction::EnsureLiterals(function);
- return result.code;
- }
- }
-
Handle<Code> code;
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, code,
Compiler::GetLazyCode(function));
DCHECK(code->IsJavaScriptCode());
function->ReplaceCode(*code);
- JSFunction::EnsureLiterals(function);
return *code;
}
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698