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

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

Issue 540253002: Remove last _logResolution reference. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | no next file » | 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:io'; 6 import 'dart:io';
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 // import 'root_library'; happens here from C Code 9 // import 'root_library'; happens here from C Code
10 10
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 switch (uri.scheme) { 300 switch (uri.scheme) {
301 case '': 301 case '':
302 case 'file': 302 case 'file':
303 case 'http': 303 case 'http':
304 return uri; 304 return uri;
305 case 'package': 305 case 'package':
306 return _resolvePackageUri(uri); 306 return _resolvePackageUri(uri);
307 default: 307 default:
308 // Only handling file, http, and package URIs 308 // Only handling file, http, and package URIs
309 // in standalone binary. 309 // in standalone binary.
310 _logResolution('# Unknown scheme (${uri.scheme}) in $uri.'); 310 if (_logBuiltin) {
311 _print('# Unknown scheme (${uri.scheme}) in $uri.');
312 }
311 throw 'Not a known scheme: $uri'; 313 throw 'Not a known scheme: $uri';
312 } 314 }
313 } 315 }
314 316
315 317
316 // Asynchronously loads script data through a http or file uri. 318 // Asynchronously loads script data through a http or file uri.
317 _loadDataAsync(int tag, String uri, String libraryUri) { 319 _loadDataAsync(int tag, String uri, String libraryUri) {
318 if (tag == null) { 320 if (tag == null) {
319 uri = _resolveScriptUri(uri); 321 uri = _resolveScriptUri(uri);
320 } 322 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 filename = '$name.dll'; 380 filename = '$name.dll';
379 } else { 381 } else {
380 if (_logBuiltin) { 382 if (_logBuiltin) {
381 _print('Native extensions not supported on ${Platform.operatingSystem}'); 383 _print('Native extensions not supported on ${Platform.operatingSystem}');
382 } 384 }
383 throw 'Native extensions not supported on ${Platform.operatingSystem}'; 385 throw 'Native extensions not supported on ${Platform.operatingSystem}';
384 } 386 }
385 387
386 return [path, filename, name]; 388 return [path, filename, name];
387 } 389 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698