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