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

Unified Diff: runtime/bin/stdio.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/main.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/stdio.dart
similarity index 62%
copy from runtime/bin/builtin.dart
copy to runtime/bin/stdio.dart
index 3e8d5d55ee6e7a50eb53439de4354b32f4c5dbee..4f154fbe6d36e39da00a75e65a51fbd7205315da 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/stdio.dart
@@ -1,22 +1,7 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, 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.
-#library("builtin");
-#import("dart:nativewrappers");
-#import("dart:coreimpl");
-
-void print(arg) {
- _Logger._printString(arg.toString());
-}
-
-void exit(int status) {
- if (status is !int) {
- throw new IllegalArgumentException("int status expected");
- }
- _exit(status);
-}
-
Socket _stdin;
InputStream get stdin() {
if (_stdin == null) {
@@ -44,10 +29,4 @@ OutputStream get stderr() {
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/main.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698