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

Side by Side Diff: bin/builtin.dart

Issue 10387061: Resubmit change 7506. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | bin/gen_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #library("builtin"); 5 #library("builtin");
6 #import("dart:uri");
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 var path; 153 var path;
153 if (_packageRoot !== null) { 154 if (_packageRoot !== null) {
154 path = "${_packageRoot}${uri.path}"; 155 path = "${_packageRoot}${uri.path}";
155 } else { 156 } else {
156 path = _entrypoint.resolve('packages/${uri.path}').path; 157 path = _entrypoint.resolve('packages/${uri.path}').path;
157 } 158 }
158 159
159 _logResolution("# Package: $path"); 160 _logResolution("# Package: $path");
160 return path; 161 return path;
161 } 162 }
OLDNEW
« no previous file with comments | « no previous file | bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698