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

Unified Diff: src/compiler.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 284919d5f228e2a92b531eb579b905389bce2355..743d3336881a760894a6fabfe0a0855d86508b93 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1070,10 +1070,7 @@ static Handle<Code> GetCodeFromOptimizedCodeMap(Handle<JSFunction> function,
}
FixedArray* literals = shared->GetLiteralsFromOptimizedCodeMap(index);
if (literals != NULL) function->set_literals(literals);
- Handle<Code> code(shared->GetCodeFromOptimizedCodeMap(index));
- if (!code->marked_for_deoptimization()) return code;
- shared->EvictFromOptimizedCodeMap(function->context()->native_context(),
- "code was already marked for deopt");
+ return Handle<Code>(shared->GetCodeFromOptimizedCodeMap(index));
}
}
return Handle<Code>::null();
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/deoptimizer.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698