Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index e05a8720fa50d719d54885f1e071fa9ae5b6e58f..603ea2b63610d45b7a85534459367b1a2dbffb6a 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -1802,33 +1802,10 @@ static void ReportCodeKindStatistics() { |
Isolate* isolate = Isolate::Current(); |
Sven Panne
2013/06/25 08:08:10
Not from your change, but let's change this while
Benedikt Meurer
2013/06/25 08:48:09
Done.
|
const char* table[Code::NUMBER_OF_KINDS] = { NULL }; |
Sven Panne
2013/06/25 08:08:10
Nuke the table and just use Code::Kind2String belo
Benedikt Meurer
2013/06/25 08:48:09
Done.
|
-#define CASE(name) \ |
- case Code::name: table[Code::name] = #name; \ |
- break |
- |
for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
- switch (static_cast<Code::Kind>(i)) { |
- CASE(FUNCTION); |
- CASE(OPTIMIZED_FUNCTION); |
- CASE(STUB); |
- CASE(BUILTIN); |
- CASE(LOAD_IC); |
- CASE(KEYED_LOAD_IC); |
- CASE(STORE_IC); |
- CASE(KEYED_STORE_IC); |
- CASE(CALL_IC); |
- CASE(KEYED_CALL_IC); |
- CASE(UNARY_OP_IC); |
- CASE(BINARY_OP_IC); |
- CASE(COMPARE_IC); |
- CASE(COMPARE_NIL_IC); |
- CASE(TO_BOOLEAN_IC); |
- CASE(REGEXP); |
- } |
+ table[i] = Code::Kind2String(static_cast<Code::Kind>(i)); |
} |
-#undef CASE |
- |
PrintF("\n Code kind histograms: \n"); |
for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { |
if (isolate->code_kind_statistics()[i] > 0) { |