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

Unified Diff: src/objects.cc

Issue 1883403002: [compiler] Move ensuring deoptimization support to backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix reset on context disposal. Created 4 years, 8 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/crankshaft/hydrogen.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index f3980573d0f7a051f45ecb17914799e5d66a5c32..d3b849d78f3dc869ae5a1ed532dac4d76a113ba2 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13524,6 +13524,11 @@ void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
}
set_opt_count(0);
set_deopt_count(0);
+ } else if (code()->is_interpreter_entry_trampoline()) {
+ // TODO(4280): We might want to consider resetting profiler ticks on the
+ // bytecode as well as re-enabling optimization similar to the above case.
rmcilroy 2016/04/15 10:11:17 Could we do this TODO as well? I think it makes se
Michael Starzinger 2016/04/15 10:40:44 Done.
+ set_opt_count(0);
+ set_deopt_count(0);
}
}
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698