Skip to content

Commit

Permalink
Reset the runtime profiler ticks for bytecode if IC state changes.
Browse files Browse the repository at this point in the history
Review-Url: https://codereview.chromium.org/2766783002
Cr-Commit-Position: refs/heads/master@{#43993}
  • Loading branch information
jaro-sevcik authored and Commit bot committed Mar 21, 2017
1 parent 5097f3d commit 154369b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ic/ic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ void IC::OnFeedbackChanged(Isolate* isolate, JSFunction* host_function) {
TypeFeedbackInfo* info = TypeFeedbackInfo::cast(host->type_feedback_info());
info->change_own_type_change_checksum();
host->set_profiler_ticks(0);
} else if (host_function->IsInterpreted()) {
host_function->shared()->set_profiler_ticks(0);
}
isolate->runtime_profiler()->NotifyICChanged();
// TODO(2029): When an optimized function is patched, it would
Expand Down

0 comments on commit 154369b

Please sign in to comment.