Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 5960ef994dfb25ad1f3c1f1410f29697547d3b53..b038c77e6c356fab3fdee26507aecc618c384d54 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -7224,6 +7224,18 @@ void Heap::CheckpointObjectStats() { |
static_cast<int>(object_sizes_last_time_[index])); |
CODE_KIND_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) |
#undef ADJUST_LAST_TIME_OBJECT_COUNT |
+#define ADJUST_LAST_TIME_OBJECT_COUNT(name) \ |
+ index = FIRST_FIXED_ARRAY_SUB_TYPE + name; \ |
+ counters->count_of_FIXED_ARRAY_##name()->Increment( \ |
+ static_cast<int>(object_counts_[index])); \ |
+ counters->count_of_FIXED_ARRAY_##name()->Decrement( \ |
+ static_cast<int>(object_counts_last_time_[index])); \ |
+ counters->size_of_FIXED_ARRAY_##name()->Increment( \ |
+ static_cast<int>(object_sizes_[index])); \ |
+ counters->size_of_FIXED_ARRAY_##name()->Decrement( \ |
+ static_cast<int>(object_sizes_last_time_[index])); |
+ FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) |
+#undef ADJUST_LAST_TIME_OBJECT_COUNT |
memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |