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

Side by Side Diff: src/flags.cc

Issue 304153016: Use full include paths everywhere (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.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 "v8.h" 8 #include "src/v8.h"
9 9
10 #include "assembler.h" 10 #include "src/assembler.h"
11 #include "platform.h" 11 #include "src/platform.h"
12 #include "smart-pointers.h" 12 #include "src/smart-pointers.h"
13 #include "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 "flag-definitions.h" 20 #include "src/flag-definitions.h"
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 "flag-definitions.h" 24 #include "src/flag-definitions.h"
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 break; 153 break;
154 case TYPE_ARGS: 154 case TYPE_ARGS:
155 *args_variable() = args_default(); 155 *args_variable() = args_default();
156 break; 156 break;
157 } 157 }
158 } 158 }
159 }; 159 };
160 160
161 Flag flags[] = { 161 Flag flags[] = {
162 #define FLAG_MODE_META 162 #define FLAG_MODE_META
163 #include "flag-definitions.h" 163 #include "src/flag-definitions.h"
164 }; 164 };
165 165
166 const size_t num_flags = sizeof(flags) / sizeof(*flags); 166 const size_t num_flags = sizeof(flags) / sizeof(*flags);
167 167
168 } // namespace 168 } // namespace
169 169
170 170
171 static const char* Type2String(Flag::FlagType type) { 171 static const char* Type2String(Flag::FlagType type) {
172 switch (type) { 172 switch (type) {
173 case Flag::TYPE_BOOL: return "bool"; 173 case Flag::TYPE_BOOL: return "bool";
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 SmartArrayPointer<const char> value = ToString(f); 538 SmartArrayPointer<const char> value = ToString(f);
539 printf(" --%s (%s)\n type: %s default: %s\n", 539 printf(" --%s (%s)\n type: %s default: %s\n",
540 f->name(), f->comment(), Type2String(f->type()), value.get()); 540 f->name(), f->comment(), Type2String(f->type()), value.get());
541 } 541 }
542 } 542 }
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 "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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698