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

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

Issue 2270473002: Add flag to dart2js to configure whether to use the kernel lowering. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('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) 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 new OptionHandler(Flags.useKernel, passThrough),
327 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), 328 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough),
328 new OptionHandler(Flags.verbose, setVerbose), 329 new OptionHandler(Flags.verbose, setVerbose),
329 new OptionHandler(Flags.version, (_) => wantVersion = true), 330 new OptionHandler(Flags.version, (_) => wantVersion = true),
330 new OptionHandler('--library-root=.+', setLibraryRoot), 331 new OptionHandler('--library-root=.+', setLibraryRoot),
331 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), 332 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true),
332 new OptionHandler(Flags.allowMockCompilation, passThrough), 333 new OptionHandler(Flags.allowMockCompilation, passThrough),
333 new OptionHandler(Flags.fastStartup, passThrough), 334 new OptionHandler(Flags.fastStartup, passThrough),
334 new OptionHandler(Flags.genericMethodSyntax, passThrough), 335 new OptionHandler(Flags.genericMethodSyntax, passThrough),
335 new OptionHandler(Flags.initializingFormalAccess, passThrough), 336 new OptionHandler(Flags.initializingFormalAccess, passThrough),
336 new OptionHandler('${Flags.minify}|-m', implyCompilation), 337 new OptionHandler('${Flags.minify}|-m', implyCompilation),
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 @override 1029 @override
1029 void close() { 1030 void close() {
1030 // Do nothing. 1031 // Do nothing.
1031 } 1032 }
1032 1033
1033 @override 1034 @override
1034 void addError(errorEvent, [StackTrace stackTrace]) { 1035 void addError(errorEvent, [StackTrace stackTrace]) {
1035 // Ignore 1036 // Ignore
1036 } 1037 }
1037 } 1038 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698