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

Side by Side Diff: runtime/bin/builtin.dart

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 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
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/builtin_natives.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 #import("dart:uri");
7 7
8 // Corelib 'print' implementation. 8 // Corelib 'print' implementation.
9 void _print(arg) { 9 void _print(arg) {
10 _Logger._printString(arg.toString()); 10 _Logger._printString(arg.toString());
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 break; 99 break;
100 case 'package': 100 case 'package':
101 path = _filePathFromPackageUri(uri); 101 path = _filePathFromPackageUri(uri);
102 break; 102 break;
103 default: 103 default:
104 // Only handling file and package URIs in standalone binary. 104 // Only handling file and package URIs in standalone binary.
105 _logResolution("# Unknown scheme (${uri.scheme}) in $uri."); 105 _logResolution("# Unknown scheme (${uri.scheme}) in $uri.");
106 throw "Not a known scheme: $uri"; 106 throw "Not a known scheme: $uri";
107 } 107 }
108 108
109 if (isWindows) { 109 if (isWindows && path.startsWith("/")) {
110 // For Windows we need to massage the paths a bit according to 110 // For Windows we need to massage the paths a bit according to
111 // http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx 111 // http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
112 // 112 //
113 // Drop the leading / before the drive letter. 113 // Drop the leading / before the drive letter.
114 path = path.substring(1); 114 path = path.substring(1);
115 _logResolution("# path: $path"); 115 _logResolution("# path: $path");
116 } 116 }
117 117
118 return path; 118 return path;
119 } 119 }
(...skipping 29 matching lines...) Expand all
149 var path; 149 var path;
150 if (_packageRoot !== null) { 150 if (_packageRoot !== null) {
151 path = "${_packageRoot}${uri.path}"; 151 path = "${_packageRoot}${uri.path}";
152 } else { 152 } else {
153 path = _entrypoint.resolve('packages/${uri.path}').path; 153 path = _entrypoint.resolve('packages/${uri.path}').path;
154 } 154 }
155 155
156 _logResolution("# Package: $path"); 156 _logResolution("# Package: $path");
157 return path; 157 return path;
158 } 158 }
OLDNEW
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/builtin_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698