Index: src/v8-counters.h |
diff --git a/src/v8-counters.h b/src/v8-counters.h |
index cb789afe1a960d86e198852177ec8dc232dcf574..e230613a72067089b53240246c94fd46029d6783 100644 |
--- a/src/v8-counters.h |
+++ b/src/v8-counters.h |
@@ -323,6 +323,14 @@ class Counters { |
CODE_KIND_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter* count_of_FIXED_ARRAY_##name() \ |
+ { return &count_of_FIXED_ARRAY_##name##_; } \ |
+ StatsCounter* size_of_FIXED_ARRAY_##name() \ |
+ { return &size_of_FIXED_ARRAY_##name##_; } |
+ FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) |
+#undef SC |
+ |
enum Id { |
#define RATE_ID(name, caption) k_##name, |
HISTOGRAM_TIMER_LIST(RATE_ID) |
@@ -341,6 +349,10 @@ class Counters { |
kSizeOfCODE_TYPE_##name, |
CODE_KIND_LIST(COUNTER_ID) |
#undef COUNTER_ID |
+#define COUNTER_ID(name) kCountOfFIXED_ARRAY__##name, \ |
+ kSizeOfFIXED_ARRAY__##name, |
+ FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(COUNTER_ID) |
+#undef COUNTER_ID |
#define COUNTER_ID(name) k_##name, |
STATE_TAG_LIST(COUNTER_ID) |
#undef COUNTER_ID |
@@ -380,6 +392,12 @@ class Counters { |
CODE_KIND_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter size_of_FIXED_ARRAY_##name##_; \ |
+ StatsCounter count_of_FIXED_ARRAY_##name##_; |
+ FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) |
+#undef SC |
+ |
enum { |
#define COUNTER_ID(name) __##name, |
STATE_TAG_LIST(COUNTER_ID) |