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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 336003003: dump-info additionally dumps a json info file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart2js.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' 7 import 'dart:async'
8 show Future, EventSink; 8 show Future, EventSink;
9 import 'dart:io' 9 import 'dart:io'
10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException, 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException,
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } else if (extension == 'precompiled.js') { 414 } else if (extension == 'precompiled.js') {
415 uri = computePrecompiledUri(); 415 uri = computePrecompiledUri();
416 diagnosticHandler.info( 416 diagnosticHandler.info(
417 "File ($uri) is compatible with header" 417 "File ($uri) is compatible with header"
418 " \"Content-Security-Policy: script-src 'self'\""); 418 " \"Content-Security-Policy: script-src 'self'\"");
419 } else if (extension == 'js.map' || extension == 'dart.map') { 419 } else if (extension == 'js.map' || extension == 'dart.map') {
420 uri = sourceMapOut; 420 uri = sourceMapOut;
421 } else if (extension == 'info.html') { 421 } else if (extension == 'info.html') {
422 String outName = out.path.substring(out.path.lastIndexOf('/') + 1); 422 String outName = out.path.substring(out.path.lastIndexOf('/') + 1);
423 uri = out.resolve('${outName}.$extension'); 423 uri = out.resolve('${outName}.$extension');
424 } else if (extension == 'info.json') {
425 String outName = out.path.substring(out.path.lastIndexOf('/') + 1);
426 uri = out.resolve('$outName.$extension');
Ty Overby 2014/06/20 19:36:47 This could probably be grouped into the case from
Ty Overby 2014/06/20 19:47:28 Done.
424 } else { 427 } else {
425 fail('Unknown extension: $extension'); 428 fail('Unknown extension: $extension');
426 } 429 }
427 } else { 430 } else {
428 uri = out.resolve('$name.$extension'); 431 uri = out.resolve('$name.$extension');
429 } 432 }
430 433
431 if (uri.scheme != 'file') { 434 if (uri.scheme != 'file') {
432 fail('Unhandled scheme ${uri.scheme} in $uri.'); 435 fail('Unhandled scheme ${uri.scheme} in $uri.');
433 } 436 }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 } else { 728 } else {
726 print(">>> TEST FAIL"); 729 print(">>> TEST FAIL");
727 } 730 }
728 stderr.writeln(">>> EOF STDERR"); 731 stderr.writeln(">>> EOF STDERR");
729 runJob(); 732 runJob();
730 }); 733 });
731 } 734 }
732 735
733 runJob(); 736 runJob();
734 } 737 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698