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 { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Reset all flags to their default value. | 52 // Reset all flags to their default value. |
53 static void ResetAllFlags(); | 53 static void ResetAllFlags(); |
54 | 54 |
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 // Hash of current flags (to quickly determine flag changes). | 61 // Hash of flags (to quickly determine mismatching flag expectations). |
| 62 // This hash is calculated during V8::Initialize and cached. |
62 static uint32_t Hash(); | 63 static uint32_t Hash(); |
63 }; | 64 }; |
64 | 65 |
65 } } // namespace v8::internal | 66 } } // namespace v8::internal |
66 | 67 |
67 #endif // V8_FLAGS_H_ | 68 #endif // V8_FLAGS_H_ |
OLD | NEW |