| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 static int Register_int(int* addr, | 44 static int Register_int(int* addr, |
| 45 const char* name, | 45 const char* name, |
| 46 int default_value, | 46 int default_value, |
| 47 const char* comment); | 47 const char* comment); |
| 48 | 48 |
| 49 static const char* Register_charp(charp* addr, | 49 static const char* Register_charp(charp* addr, |
| 50 const char* name, | 50 const char* name, |
| 51 const char* default_value, | 51 const char* default_value, |
| 52 const char* comment); | 52 const char* comment); |
| 53 | 53 |
| 54 static void ProcessCommandLineFlags(int argc, char** argv); | 54 static void ProcessCommandLineFlags(int argc, const char** argv); |
| 55 | 55 |
| 56 static Flag* Lookup(const char* name); | 56 static Flag* Lookup(const char* name); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 static Flag* flags_; | 59 static Flag* flags_; |
| 60 | 60 |
| 61 static void Parse(const char* option); | 61 static void Parse(const char* option); |
| 62 | 62 |
| 63 // Testing needs direct access to private methods. | 63 // Testing needs direct access to private methods. |
| 64 friend void Dart_TestParseFlags(); | 64 friend void Dart_TestParseFlags(); |
| 65 | 65 |
| 66 DISALLOW_ALLOCATION(); | 66 DISALLOW_ALLOCATION(); |
| 67 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); | 67 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace dart | 70 } // namespace dart |
| 71 | 71 |
| 72 #endif // VM_FLAGS_H_ | 72 #endif // VM_FLAGS_H_ |
| OLD | NEW |