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

Unified Diff: runtime/bin/builtin.dart

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin.cc ('k') | runtime/bin/builtin_impl_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index 3e8d5d55ee6e7a50eb53439de4354b32f4c5dbee..78a48f3cf1cd531441d73a709fec7a50773ab6cc 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -17,37 +17,8 @@ void exit(int status) {
_exit(status);
}
-Socket _stdin;
-InputStream get stdin() {
- if (_stdin == null) {
- _stdin = new _Socket._internalReadOnly();
- _getStdioHandle(_stdin, 0);
- }
- return _stdin.inputStream;
-}
-
-Socket _stdout;
-OutputStream get stdout() {
- if (_stdout == null) {
- _stdout = new _Socket._internalWriteOnly();
- _getStdioHandle(_stdout, 1);
- }
- return _stdout.outputStream;
-}
-
-Socket _stderr;
-OutputStream get stderr() {
- if (_stderr == null) {
- _stderr = new _Socket._internalWriteOnly();
- _getStdioHandle(_stderr, 2);
- }
- return _stderr.outputStream;
-}
-
_exit(int status) native "Exit";
-_getStdioHandle(Socket socket, int num) native "Socket_GetStdioHandle";
-
class _Logger {
static void _printString(String s) native "Logger_PrintString";
}
« no previous file with comments | « runtime/bin/builtin.cc ('k') | runtime/bin/builtin_impl_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698