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

Unified Diff: src/deoptimizer.cc

Issue 1136693003: TurboFan: commit dependencies only on update of the opt. code list. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/compiler.cc ('k') | src/objects.cc » ('j') | no next file with comments »
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 13c282da9e6a8a4058dc084eb974ad72118f4b8a..9423fd0f6d6f14106723f81dd8cd38486b764aee 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -379,8 +379,8 @@ void Deoptimizer::DeoptimizeMarkedCodeForContext(Context* context) {
CHECK_EQ(code->kind(), Code::OPTIMIZED_FUNCTION);
Object* next = code->next_code_link();
- if (code->marked_for_deoptimization() &&
- (!code->is_turbofanned() || FLAG_turbo_deoptimization)) {
+ if (code->marked_for_deoptimization()) {
+ DCHECK(!code->is_turbofanned() || FLAG_turbo_deoptimization);
// Put the code into the list for later patching.
codes.Add(code, &zone);
@@ -496,6 +496,8 @@ void Deoptimizer::MarkAllCodeForContext(Context* context) {
Code* code = Code::cast(element);
CHECK_EQ(code->kind(), Code::OPTIMIZED_FUNCTION);
code->set_marked_for_deoptimization(true);
+ PrintF("%d: MarkAllCodeForContext: Set %p for deoptimization\n",
+ ThreadId::Current().ToInteger(), reinterpret_cast<void*>(code));
Jarin 2015/05/08 08:34:15 This PrintF should be removed, no?
element = code->next_code_link();
}
}
« no previous file with comments | « src/compiler.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698