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

Side by Side Diff: vm/flags.h

Issue 8439061: Support command line parameters to specify a url to file name mapping. This is used during snapsh... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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 | « vm/dart_api_impl.cc ('k') | 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, 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_
OLDNEW
« no previous file with comments | « vm/dart_api_impl.cc ('k') | vm/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698