OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_FLAGS_H_ | 5 #ifndef VM_FLAGS_H_ |
6 #define VM_FLAGS_H_ | 6 #define VM_FLAGS_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 static bool Register_bool(bool* addr, | 46 static bool Register_bool(bool* addr, |
47 const char* name, | 47 const char* name, |
48 bool default_value, | 48 bool default_value, |
49 const char* comment); | 49 const char* comment); |
50 | 50 |
51 static int Register_int(int* addr, | 51 static int Register_int(int* addr, |
52 const char* name, | 52 const char* name, |
53 int default_value, | 53 int default_value, |
54 const char* comment); | 54 const char* comment); |
55 | 55 |
| 56 static uint64_t Register_uint64_t(uint64_t* addr, |
| 57 const char* name, |
| 58 uint64_t default_value, |
| 59 const char* comment); |
| 60 |
56 static const char* Register_charp(charp* addr, | 61 static const char* Register_charp(charp* addr, |
57 const char* name, | 62 const char* name, |
58 const char* default_value, | 63 const char* default_value, |
59 const char* comment); | 64 const char* comment); |
60 | 65 |
61 static bool Register_func(FlagHandler handler, | 66 static bool Register_func(FlagHandler handler, |
62 const char* name, | 67 const char* name, |
63 const char* comment); | 68 const char* comment); |
64 | 69 |
65 static bool ProcessCommandLineFlags(int argc, const char** argv); | 70 static bool ProcessCommandLineFlags(int argc, const char** argv); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Testing needs direct access to private methods. | 103 // Testing needs direct access to private methods. |
99 friend void Dart_TestParseFlags(); | 104 friend void Dart_TestParseFlags(); |
100 | 105 |
101 DISALLOW_ALLOCATION(); | 106 DISALLOW_ALLOCATION(); |
102 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); |
103 }; | 108 }; |
104 | 109 |
105 } // namespace dart | 110 } // namespace dart |
106 | 111 |
107 #endif // VM_FLAGS_H_ | 112 #endif // VM_FLAGS_H_ |
OLD | NEW |