Chromium Code Reviews

Unified Diff: src/deoptimizer.cc

Issue 184923002: Clear optimized code cache in shared function info when code gets deoptimized (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix assert Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | src/objects.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 04439f317cc5593160b070a2d7ec13f43db728d5..1b78bae30573e12b385cfbb24720aaef89561faf 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -342,8 +342,6 @@ void Deoptimizer::DeoptimizeMarkedCodeForContext(Context* context) {
// Unlink this function and evict from optimized code map.
SharedFunctionInfo* shared = function->shared();
function->set_code(shared->code());
- shared->EvictFromOptimizedCodeMap(function->context()->native_context(),
- "deoptimized function");
if (FLAG_trace_deopt) {
CodeTracer::Scope scope(code->GetHeap()->isolate()->GetCodeTracer());
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine