OLD | NEW |
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 #ifndef V8_FLAGS_H_ | 5 #ifndef V8_FLAGS_H_ |
6 #define V8_FLAGS_H_ | 6 #define V8_FLAGS_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 // Declare all of our flags. | 13 // Declare all of our flags. |
14 #define FLAG_MODE_DECLARE | 14 #define FLAG_MODE_DECLARE |
15 #include "src/flag-definitions.h" | 15 #include "src/flag-definitions.h" // NOLINT |
16 | 16 |
17 // The global list of all flags. | 17 // The global list of all flags. |
18 class FlagList { | 18 class FlagList { |
19 public: | 19 public: |
20 // The list of all flags with a value different from the default | 20 // The list of all flags with a value different from the default |
21 // and their values. The format of the list is like the format of the | 21 // and their values. The format of the list is like the format of the |
22 // argv array passed to the main function, e.g. | 22 // argv array passed to the main function, e.g. |
23 // ("--prof", "--log-file", "v8.prof", "--nolazy"). | 23 // ("--prof", "--log-file", "v8.prof", "--nolazy"). |
24 // | 24 // |
25 // The caller is responsible for disposing the list, as well | 25 // The caller is responsible for disposing the list, as well |
(...skipping 29 matching lines...) Expand all Loading... |
55 // Print help to stdout with flags, types, and default values. | 55 // Print help to stdout with flags, types, and default values. |
56 static void PrintHelp(); | 56 static void PrintHelp(); |
57 | 57 |
58 // Set flags as consequence of being implied by another flag. | 58 // Set flags as consequence of being implied by another flag. |
59 static void EnforceFlagImplications(); | 59 static void EnforceFlagImplications(); |
60 }; | 60 }; |
61 | 61 |
62 } } // namespace v8::internal | 62 } } // namespace v8::internal |
63 | 63 |
64 #endif // V8_FLAGS_H_ | 64 #endif // V8_FLAGS_H_ |
OLD | NEW |