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

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 2746293006: Pulling the element model out of global type inference. (Closed)
Patch Set: . Created 3 years, 9 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
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' show EventSink, Future; 7 import 'dart:async' show EventSink, Future;
8 import 'dart:convert' show UTF8, LineSplitter; 8 import 'dart:convert' show UTF8, LineSplitter;
9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr;
10 10
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 passThrough(Flags.suppressWarnings); 317 passThrough(Flags.suppressWarnings);
318 }), 318 }),
319 new OptionHandler(Flags.fatalWarnings, passThrough), 319 new OptionHandler(Flags.fatalWarnings, passThrough),
320 new OptionHandler(Flags.suppressHints, (_) { 320 new OptionHandler(Flags.suppressHints, (_) {
321 showHints = false; 321 showHints = false;
322 }), 322 }),
323 // TODO(sigmund): remove entirely after Dart 1.20 323 // TODO(sigmund): remove entirely after Dart 1.20
324 new OptionHandler( 324 new OptionHandler(
325 '--output-type=dart|--output-type=dart-multi|--output-type=js', 325 '--output-type=dart|--output-type=dart-multi|--output-type=js',
326 setOutputType), 326 setOutputType),
327 // TODO(efortuna): Remove this once kernel global inference is fully
328 // implemented.
329 new OptionHandler(Flags.kernelGlobalInference, passThrough),
327 new OptionHandler(Flags.useKernel, passThrough), 330 new OptionHandler(Flags.useKernel, passThrough),
328 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), 331 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough),
329 new OptionHandler(Flags.verbose, setVerbose), 332 new OptionHandler(Flags.verbose, setVerbose),
330 new OptionHandler(Flags.version, (_) => wantVersion = true), 333 new OptionHandler(Flags.version, (_) => wantVersion = true),
331 new OptionHandler('--library-root=.+', setLibraryRoot), 334 new OptionHandler('--library-root=.+', setLibraryRoot),
332 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), 335 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true),
333 new OptionHandler(Flags.allowMockCompilation, passThrough), 336 new OptionHandler(Flags.allowMockCompilation, passThrough),
334 new OptionHandler(Flags.fastStartup, passThrough), 337 new OptionHandler(Flags.fastStartup, passThrough),
335 new OptionHandler(Flags.genericMethodSyntax, ignoreOption), 338 new OptionHandler(Flags.genericMethodSyntax, ignoreOption),
336 new OptionHandler(Flags.initializingFormalAccess, ignoreOption), 339 new OptionHandler(Flags.initializingFormalAccess, ignoreOption),
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 @override 1037 @override
1035 void add(String event) { 1038 void add(String event) {
1036 sb.write(event); 1039 sb.write(event);
1037 } 1040 }
1038 1041
1039 @override 1042 @override
1040 void close() { 1043 void close() {
1041 // Do nothing. 1044 // Do nothing.
1042 } 1045 }
1043 } 1046 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/inferrer/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698