Commit 477f872c authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Fix GCC error about comma at end of enumerator list.

TBR=svenpanne@chromium.org
BUG=

Review URL: https://codereview.chromium.org/17612007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15316 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 66efb966
......@@ -1543,6 +1543,8 @@ void Logger::LogCodeObject(Object* object) {
description = "A keyed call IC from the snapshot";
tag = Logger::KEYED_CALL_IC_TAG;
break;
case Code::NUMBER_OF_KINDS:
break;
}
PROFILE(isolate_, CodeCreateEvent(tag, code_object, description));
}
......
......@@ -10353,6 +10353,7 @@ const char* Code::Kind2String(Kind kind) {
#define CASE(name) case name: return #name;
CODE_KIND_LIST(CASE)
#undef CASE
case NUMBER_OF_KINDS: break;
}
UNREACHABLE();
return NULL;
......
......@@ -4467,12 +4467,7 @@ class Code: public HeapObject {
#define DEFINE_CODE_KIND_ENUM(name) name,
CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM)
#undef DEFINE_CODE_KIND_ENUM
};
enum {
#define COUNT_FLAG(name) + 1
NUMBER_OF_KINDS = 0 CODE_KIND_LIST(COUNT_FLAG)
#undef COUNT_FLAG
NUMBER_OF_KINDS
};
// No more than 16 kinds. The value is currently encoded in four bits in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment