Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Side by Side Diff: runtime/vm/flags.h

Issue 290713004: First step towards asynchronous loading of sources (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const char* comment); 57 const char* comment);
58 58
59 static bool Register_func(FlagHandler handler, 59 static bool Register_func(FlagHandler handler,
60 const char* name, 60 const char* name,
61 const char* comment); 61 const char* comment);
62 62
63 static bool ProcessCommandLineFlags(int argc, const char** argv); 63 static bool ProcessCommandLineFlags(int argc, const char** argv);
64 64
65 static Flag* Lookup(const char* name); 65 static Flag* Lookup(const char* name);
66 66
67 static bool IsSet(const char* name);
68
67 static bool Initialized() { return initialized_; } 69 static bool Initialized() { return initialized_; }
68 70
69 private: 71 private:
70 static Flag* flags_; 72 static Flag* flags_;
71 73
72 static bool initialized_; 74 static bool initialized_;
73 75
74 static void Parse(const char* option); 76 static void Parse(const char* option);
75 77
76 static int CompareFlagNames(const void* left, const void* right); 78 static int CompareFlagNames(const void* left, const void* right);
77 79
78 static void PrintFlags(); 80 static void PrintFlags();
79 81
80 // Testing needs direct access to private methods. 82 // Testing needs direct access to private methods.
81 friend void Dart_TestParseFlags(); 83 friend void Dart_TestParseFlags();
82 84
83 DISALLOW_ALLOCATION(); 85 DISALLOW_ALLOCATION();
84 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); 86 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags);
85 }; 87 };
86 88
87 } // namespace dart 89 } // namespace dart
88 90
89 #endif // VM_FLAGS_H_ 91 #endif // VM_FLAGS_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698