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 BIN_PLATFORM_H_ | 5 #ifndef BIN_PLATFORM_H_ |
6 #define BIN_PLATFORM_H_ | 6 #define BIN_PLATFORM_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 | 9 |
10 | |
11 namespace dart { | 10 namespace dart { |
12 namespace bin { | 11 namespace bin { |
13 | 12 |
14 class Platform { | 13 class Platform { |
15 public: | 14 public: |
16 // Perform platform specific initialization. | 15 // Perform platform specific initialization. |
17 static bool Initialize(); | 16 static bool Initialize(); |
18 | 17 |
19 // Returns the number of processors on the machine. | 18 // Returns the number of processors on the machine. |
20 static int NumberOfProcessors(); | 19 static int NumberOfProcessors(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 static char** argv_; // VM flags are argv_[1 ... script_index_ - 1] | 77 static char** argv_; // VM flags are argv_[1 ... script_index_ - 1] |
79 | 78 |
80 DISALLOW_ALLOCATION(); | 79 DISALLOW_ALLOCATION(); |
81 DISALLOW_IMPLICIT_CONSTRUCTORS(Platform); | 80 DISALLOW_IMPLICIT_CONSTRUCTORS(Platform); |
82 }; | 81 }; |
83 | 82 |
84 } // namespace bin | 83 } // namespace bin |
85 } // namespace dart | 84 } // namespace dart |
86 | 85 |
87 #endif // BIN_PLATFORM_H_ | 86 #endif // BIN_PLATFORM_H_ |
OLD | NEW |