Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index c2254207fed6110b9ed3982d1cc00ec65aadc387..f8a19a3f32044abdcaa2fec4bc38b90d265204f2 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->compute_counts(&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; |