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

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

Issue 8713012: Introduce Dart_SetVMFlags API function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Comments addressed. Created 9 years 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) 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
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, const char** argv); 54 static bool 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 static bool Initialized() { return initialized_; }
59
58 private: 60 private:
59 static Flag* flags_; 61 static Flag* flags_;
60 62
63 static bool initialized_;
64
61 static void Parse(const char* option); 65 static void Parse(const char* option);
62 66
63 // Testing needs direct access to private methods. 67 // Testing needs direct access to private methods.
64 friend void Dart_TestParseFlags(); 68 friend void Dart_TestParseFlags();
65 69
66 DISALLOW_ALLOCATION(); 70 DISALLOW_ALLOCATION();
67 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags); 71 DISALLOW_IMPLICIT_CONSTRUCTORS(Flags);
68 }; 72 };
69 73
70 } // namespace dart 74 } // namespace dart
71 75
72 #endif // VM_FLAGS_H_ 76 #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