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

Side by Side Diff: runtime/bin/dartutils.h

Issue 9114008: Introduce runtime/platform directory for code shared between vm (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Windows fixes. Created 8 years, 11 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
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 BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/globals.h"
10 9
11 #include "include/dart_api.h" 10 #include "include/dart_api.h"
12 11
12 #include "platform/globals.h"
13
13 class CommandLineOptions { 14 class CommandLineOptions {
14 public: 15 public:
15 explicit CommandLineOptions(int max_count) 16 explicit CommandLineOptions(int max_count)
16 : count_(0), max_count_(max_count), arguments_(NULL) { 17 : count_(0), max_count_(max_count), arguments_(NULL) {
17 static const int kWordSize = sizeof(intptr_t); 18 static const int kWordSize = sizeof(intptr_t);
18 arguments_ = reinterpret_cast<const char **>(malloc(max_count * kWordSize)); 19 arguments_ = reinterpret_cast<const char **>(malloc(max_count * kWordSize));
19 if (arguments_ == NULL) { 20 if (arguments_ == NULL) {
20 max_count_ = 0; 21 max_count_ = 0;
21 } 22 }
22 } 23 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 private: 91 private:
91 static const char* GetCanonicalPath(const char* reference_dir, 92 static const char* GetCanonicalPath(const char* reference_dir,
92 const char* filename); 93 const char* filename);
93 94
94 DISALLOW_ALLOCATION(); 95 DISALLOW_ALLOCATION();
95 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); 96 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils);
96 }; 97 };
97 98
98 #endif // BIN_DARTUTILS_H_ 99 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin.h ('k') | runtime/bin/dartutils.cc » ('j') | runtime/platform/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698