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

Unified Diff: src/ic/ic.cc

Issue 2800623002: [compiler] Make --trace-opt-verbose more useful. (Closed)
Patch Set: Created 3 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 | « no previous file | src/runtime-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index b554897f77575d7763465d30471f12a036e78fc8..71aa29bfd4599d212559182402b80aa3e6da14a5 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -437,6 +437,14 @@ void IC::OnFeedbackChanged(Isolate* isolate, JSFunction* host_function) {
info->change_own_type_change_checksum();
host->set_profiler_ticks(0);
} else if (host_function->IsInterpreted()) {
+ if (FLAG_trace_opt_verbose) {
+ if (host_function->shared()->profiler_ticks() != 0) {
+ PrintF("[resetting ticks for ");
+ host_function->PrintName();
+ PrintF(" due from %d due to IC change]\n",
+ host_function->shared()->profiler_ticks());
+ }
+ }
host_function->shared()->set_profiler_ticks(0);
}
isolate->runtime_profiler()->NotifyICChanged();
« no previous file with comments | « no previous file | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698