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

Side by Side Diff: src/objects.h

Issue 17612007: Fix GCC error about comma at end of enumerator list. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4449 matching lines...) Expand 10 before | Expand all | Expand 10 after
4460 V(TO_BOOLEAN_IC) 4460 V(TO_BOOLEAN_IC)
4461 4461
4462 #define CODE_KIND_LIST(V) \ 4462 #define CODE_KIND_LIST(V) \
4463 NON_IC_KIND_LIST(V) \ 4463 NON_IC_KIND_LIST(V) \
4464 IC_KIND_LIST(V) 4464 IC_KIND_LIST(V)
4465 4465
4466 enum Kind { 4466 enum Kind {
4467 #define DEFINE_CODE_KIND_ENUM(name) name, 4467 #define DEFINE_CODE_KIND_ENUM(name) name,
4468 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) 4468 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM)
4469 #undef DEFINE_CODE_KIND_ENUM 4469 #undef DEFINE_CODE_KIND_ENUM
4470 }; 4470 NUMBER_OF_KINDS
4471
4472 enum {
4473 #define COUNT_FLAG(name) + 1
4474 NUMBER_OF_KINDS = 0 CODE_KIND_LIST(COUNT_FLAG)
4475 #undef COUNT_FLAG
4476 }; 4471 };
4477 4472
4478 // No more than 16 kinds. The value is currently encoded in four bits in 4473 // No more than 16 kinds. The value is currently encoded in four bits in
4479 // Flags. 4474 // Flags.
4480 STATIC_ASSERT(NUMBER_OF_KINDS <= 16); 4475 STATIC_ASSERT(NUMBER_OF_KINDS <= 16);
4481 4476
4482 static const char* Kind2String(Kind kind); 4477 static const char* Kind2String(Kind kind);
4483 4478
4484 // Types of stubs. 4479 // Types of stubs.
4485 enum StubType { 4480 enum StubType {
(...skipping 5244 matching lines...) Expand 10 before | Expand all | Expand 10 after
9730 } else { 9725 } else {
9731 value &= ~(1 << bit_position); 9726 value &= ~(1 << bit_position);
9732 } 9727 }
9733 return value; 9728 return value;
9734 } 9729 }
9735 }; 9730 };
9736 9731
9737 } } // namespace v8::internal 9732 } } // namespace v8::internal
9738 9733
9739 #endif // V8_OBJECTS_H_ 9734 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698