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

Side by Side Diff: bin/builtin.dart

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #library("builtin"); 5 #library("builtin");
6 #import("dart:core-native-fields");
6 7
7 void print(arg) { 8 void print(arg) {
8 _Logger._printString(arg.toString()); 9 _Logger._printString(arg.toString());
9 } 10 }
10 11
11 void exit(int status) { 12 void exit(int status) {
12 if (status is !int) { 13 if (status is !int) {
13 throw new IllegalArgumentException("int status expected"); 14 throw new IllegalArgumentException("int status expected");
14 } 15 }
15 _exit(status); 16 _exit(status);
(...skipping 24 matching lines...) Expand all
40 _stderr._id = 2; 41 _stderr._id = 2;
41 } 42 }
42 return _stderr.outputStream; 43 return _stderr.outputStream;
43 } 44 }
44 45
45 _exit(int status) native "Exit"; 46 _exit(int status) native "Exit";
46 47
47 class _Logger { 48 class _Logger {
48 static void _printString(String s) native "Logger_PrintString"; 49 static void _printString(String s) native "Logger_PrintString";
49 } 50 }
OLDNEW
« no previous file with comments | « bin/builtin.h ('k') | bin/builtin_in.cc » ('j') | bin/builtin_in.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698