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 // 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 15 matching lines...) Expand all Loading... |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 #ifndef V8_FLAGS_H_ | 27 #ifndef V8_FLAGS_H_ |
28 #define V8_FLAGS_H_ | 28 #define V8_FLAGS_H_ |
29 | 29 |
30 #include "checks.h" | 30 #include "checks.h" |
31 | 31 |
32 namespace v8 { namespace internal { | 32 namespace v8 { namespace internal { |
33 | 33 |
34 // Declare all of our flags. | 34 // Declare all of our flags. |
35 #define FLAG_MODE_DECLARE | 35 #define FLAG_MODE_DECLARE |
36 #include "flags.defs" | 36 #include "flag-definitions.h" |
37 | 37 |
38 // The global list of all flags. | 38 // The global list of all flags. |
39 class FlagList { | 39 class FlagList { |
40 public: | 40 public: |
41 // The list of all flags with a value different from the default | 41 // The list of all flags with a value different from the default |
42 // and their values. The format of the list is like the format of the | 42 // and their values. The format of the list is like the format of the |
43 // argv array passed to the main function, e.g. | 43 // argv array passed to the main function, e.g. |
44 // ("--prof", "--log-file", "v8.prof", "--nolazy"). | 44 // ("--prof", "--log-file", "v8.prof", "--nolazy"). |
45 // | 45 // |
46 // The caller is responsible for disposing the list. | 46 // The caller is responsible for disposing the list. |
(...skipping 22 matching lines...) Expand all Loading... |
69 // Reset all flags to their default value. | 69 // Reset all flags to their default value. |
70 static void ResetAllFlags(); | 70 static void ResetAllFlags(); |
71 | 71 |
72 // Print help to stdout with flags, types, and default values. | 72 // Print help to stdout with flags, types, and default values. |
73 static void PrintHelp(); | 73 static void PrintHelp(); |
74 }; | 74 }; |
75 | 75 |
76 } } // namespace v8::internal | 76 } } // namespace v8::internal |
77 | 77 |
78 #endif // V8_FLAGS_H_ | 78 #endif // V8_FLAGS_H_ |
OLD | NEW |