| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 static bool Initialized() { return initialized_; } | 67 static bool Initialized() { return initialized_; } |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 static Flag* flags_; | 70 static Flag* flags_; |
| 71 | 71 |
| 72 static bool initialized_; | 72 static bool initialized_; |
| 73 | 73 |
| 74 static void Parse(const char* option); | 74 static void Parse(const char* option); |
| 75 | 75 |
| 76 static int CompareFlagNames(const void* left, const void* right); |
| 77 |
| 78 static void PrintFlags(); |
| 79 |
| 76 // Testing needs direct access to private methods. | 80 // Testing needs direct access to private methods. |
| 77 friend void Dart_TestParseFlags(); | 81 friend void Dart_TestParseFlags(); |
| 78 | 82 |
| 79 DISALLOW_ALLOCATION(); | 83 DISALLOW_ALLOCATION(); |
| 80 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); | 84 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 } // namespace dart | 87 } // namespace dart |
| 84 | 88 |
| 85 #endif // VM_FLAGS_H_ | 89 #endif // VM_FLAGS_H_ |
| OLD | NEW |