| Index: runtime/bin/platform_impl.dart
|
| diff --git a/runtime/bin/platform_impl.dart b/runtime/bin/platform_impl.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0328e65dca6eee36f748af7597958aa8147edea1
|
| --- /dev/null
|
| +++ b/runtime/bin/platform_impl.dart
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +class _Platform implements Platform {
|
| + _Platform();
|
| +
|
| + static int _numberOfProcessors() native "Platform_NumberOfProcessors";
|
| + static String _pathSeparator() native "Platform_PathSeparator";
|
| + static String _operatingSystem() native "Platform_OperatingSystem";
|
| +
|
| + int numberOfProcessors() {
|
| + return _numberOfProcessors();
|
| + }
|
| +
|
| + String pathSeparator() {
|
| + return _pathSeparator();
|
| + }
|
| +
|
| + String operatingSystem() {
|
| + return _operatingSystem();
|
| + }
|
| +}
|
|
|