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

Side by Side Diff: src/flags.cc

Issue 333013002: Check alpha-sorting of includes during presubmit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/flags.h ('k') | src/frames-inl.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <ctype.h> 5 #include <ctype.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
11 #include "src/platform.h" 11 #include "src/platform.h"
12 #include "src/smart-pointers.h" 12 #include "src/smart-pointers.h"
13 #include "src/string-stream.h" 13 #include "src/string-stream.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 // Define all of our flags. 18 // Define all of our flags.
19 #define FLAG_MODE_DEFINE 19 #define FLAG_MODE_DEFINE
20 #include "src/flag-definitions.h" 20 #include "src/flag-definitions.h" // NOLINT
21 21
22 // Define all of our flags default values. 22 // Define all of our flags default values.
23 #define FLAG_MODE_DEFINE_DEFAULTS 23 #define FLAG_MODE_DEFINE_DEFAULTS
24 #include "src/flag-definitions.h" 24 #include "src/flag-definitions.h" // NOLINT
25 25
26 namespace { 26 namespace {
27 27
28 // This structure represents a single entry in the flag system, with a pointer 28 // This structure represents a single entry in the flag system, with a pointer
29 // to the actual flag, default value, comment, etc. This is designed to be POD 29 // to the actual flag, default value, comment, etc. This is designed to be POD
30 // initialized as to avoid requiring static constructors. 30 // initialized as to avoid requiring static constructors.
31 struct Flag { 31 struct Flag {
32 enum FlagType { TYPE_BOOL, TYPE_MAYBE_BOOL, TYPE_INT, TYPE_FLOAT, 32 enum FlagType { TYPE_BOOL, TYPE_MAYBE_BOOL, TYPE_INT, TYPE_FLOAT,
33 TYPE_STRING, TYPE_ARGS }; 33 TYPE_STRING, TYPE_ARGS };
34 34
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 543
544 544
545 // static 545 // static
546 void FlagList::EnforceFlagImplications() { 546 void FlagList::EnforceFlagImplications() {
547 #define FLAG_MODE_DEFINE_IMPLICATIONS 547 #define FLAG_MODE_DEFINE_IMPLICATIONS
548 #include "src/flag-definitions.h" 548 #include "src/flag-definitions.h"
549 #undef FLAG_MODE_DEFINE_IMPLICATIONS 549 #undef FLAG_MODE_DEFINE_IMPLICATIONS
550 } 550 }
551 551
552 } } // namespace v8::internal 552 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flags.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698