Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: src/spaces.cc

Issue 17636003: Fix compilation error introduced with r15287. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated fix Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/objects.h ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« src/objects.h ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698