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

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

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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 import 'dart:io' 8 import 'dart:io'
9 show exit, File, FileMode, Options, Platform, RandomAccessFile; 9 show exit, File, FileMode, Options, Platform, RandomAccessFile;
10 import 'dart:math' as math; 10 import 'dart:math' as math;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 Uri packageRoot = null; 103 Uri packageRoot = null;
104 List<String> options = new List<String>(); 104 List<String> options = new List<String>();
105 bool explicitOut = false; 105 bool explicitOut = false;
106 bool wantHelp = false; 106 bool wantHelp = false;
107 bool wantVersion = false; 107 bool wantVersion = false;
108 String outputLanguage = 'JavaScript'; 108 String outputLanguage = 'JavaScript';
109 bool stripArgumentSet = false; 109 bool stripArgumentSet = false;
110 bool analyzeOnly = false; 110 bool analyzeOnly = false;
111 bool hasDisallowUnsafeEval = false; 111 bool hasDisallowUnsafeEval = false;
112 // TODO(johnniwinther): Measure time for reading files. 112 // TODO(johnniwinther): Measure time for reading files.
113 SourceFileProvider inputProvider = new SourceFileProvider(); 113 SourceFileProvider inputProvider = new CompilerSourceFileProvider();
114 diagnosticHandler = new FormattingDiagnosticHandler(inputProvider); 114 diagnosticHandler = new FormattingDiagnosticHandler(inputProvider);
115 115
116 passThrough(String argument) => options.add(argument); 116 passThrough(String argument) => options.add(argument);
117 117
118 if (BUILD_ID != null) { 118 if (BUILD_ID != null) {
119 passThrough("--build-id=$BUILD_ID"); 119 passThrough("--build-id=$BUILD_ID");
120 } 120 }
121 121
122 setLibraryRoot(String argument) { 122 setLibraryRoot(String argument) {
123 libraryRoot = currentDirectory.resolve(extractPath(argument)); 123 libraryRoot = currentDirectory.resolve(extractPath(argument));
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } 604 }
605 } finally { 605 } finally {
606 exit(253); // 253 is recognized as a crash by our test scripts. 606 exit(253); // 253 is recognized as a crash by our test scripts.
607 } 607 }
608 }); 608 });
609 } 609 }
610 610
611 void main() { 611 void main() {
612 mainWithErrorHandler(new Options()); 612 mainWithErrorHandler(new Options());
613 } 613 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698