Commit eb0950d2 authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

[profiler] Minor cleanup since we only harvest vector IC counts now

BUG=v8:6409

Change-Id: I9e06388c683e283a1922fb436dceb244f5093042
Reviewed-on: https://chromium-review.googlesource.com/664857Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47993}
parent 14b424c3
......@@ -73,18 +73,10 @@ RuntimeProfiler::RuntimeProfiler(Isolate* isolate)
static void GetICCounts(JSFunction* function, int* ic_with_type_info_count,
int* ic_generic_count, int* ic_total_count,
int* type_info_percentage, int* generic_percentage) {
*ic_total_count = 0;
*ic_generic_count = 0;
*ic_with_type_info_count = 0;
// Harvest vector-ics as well
// Harvest vector-ics.
FeedbackVector* vector = function->feedback_vector();
int with = 0, gen = 0, type_vector_ic_count = 0;
vector->ComputeCounts(&with, &gen, &type_vector_ic_count);
*ic_total_count += type_vector_ic_count;
*ic_with_type_info_count += with;
*ic_generic_count += gen;
vector->ComputeCounts(ic_with_type_info_count, ic_generic_count,
ic_total_count);
if (*ic_total_count > 0) {
*type_info_percentage = 100 * *ic_with_type_info_count / *ic_total_count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment