| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index c2254207fed6110b9ed3982d1cc00ec65aadc387..2d4ee9c1a888254206aa602ffce735ea4468804c 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -72,8 +72,10 @@ static void GetICCounts(SharedFunctionInfo* shared,
|
|
|
| // Harvest vector-ics as well
|
| TypeFeedbackVector* vector = shared->feedback_vector();
|
| - *ic_with_type_info_count += vector->ic_with_type_info_count();
|
| - *ic_generic_count += vector->ic_generic_count();
|
| + int with = 0, gen = 0;
|
| + vector->ComputeCounts(&with, &gen);
|
| + *ic_with_type_info_count += with;
|
| + *ic_generic_count += gen;
|
|
|
| if (*ic_total_count > 0) {
|
| *type_info_percentage = 100 * *ic_with_type_info_count / *ic_total_count;
|
|
|