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

Side by Side Diff: sdk/lib/io/platform_impl.dart

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 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
OLDNEW
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 part of dart.io; 5 part of dart.io;
6 6
7 class _Platform { 7 class _Platform {
8 external static int _numberOfProcessors(); 8 external static int _numberOfProcessors();
9 external static String _pathSeparator(); 9 external static String _pathSeparator();
10 external static String _operatingSystem(); 10 external static String _operatingSystem();
11 external static _localHostname(); 11 external static _localHostname();
12 external static _executable(); 12 external static _executable();
13 external static _resolvedExecutable(); 13 external static _resolvedExecutable();
14 external static void set _nativeScript(String path);
15
14 /** 16 /**
15 * Retrieve the entries of the process environment. 17 * Retrieve the entries of the process environment.
16 * 18 *
17 * The result is an [Iterable] of strings, where each string represents 19 * The result is an [Iterable] of strings, where each string represents
18 * an environment entry. 20 * an environment entry.
19 * 21 *
20 * Environment entries should be strings containing 22 * Environment entries should be strings containing
21 * a non-empty name and a value separated by a '=' character. 23 * a non-empty name and a value separated by a '=' character.
22 * The name does not contain a '=' character, 24 * The name does not contain a '=' character,
23 * so the name is everything up to the first '=' character. 25 * so the name is everything up to the first '=' character.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 V remove(Object key) => key is String ? _map.remove(key.toUpperCase()) : null; 119 V remove(Object key) => key is String ? _map.remove(key.toUpperCase()) : null;
118 void clear() { _map.clear(); } 120 void clear() { _map.clear(); }
119 void forEach(void f(String key, V value)) { _map.forEach(f); } 121 void forEach(void f(String key, V value)) { _map.forEach(f); }
120 Iterable<String> get keys => _map.keys; 122 Iterable<String> get keys => _map.keys;
121 Iterable<V> get values => _map.values; 123 Iterable<V> get values => _map.values;
122 int get length => _map.length; 124 int get length => _map.length;
123 bool get isEmpty => _map.isEmpty; 125 bool get isEmpty => _map.isEmpty;
124 bool get isNotEmpty => _map.isNotEmpty; 126 bool get isNotEmpty => _map.isNotEmpty;
125 String toString() => _map.toString(); 127 String toString() => _map.toString();
126 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698