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

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

Issue 1273503002: dart2js: Add --fast-startup flag. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove unused env constant. Created 5 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' 7 import 'dart:async'
8 show Future, EventSink; 8 show Future, EventSink;
9 import 'dart:convert' show UTF8, LineSplitter; 9 import 'dart:convert' show UTF8, LineSplitter;
10 import 'dart:io' 10 import 'dart:io'
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 new OptionHandler( 310 new OptionHandler(
311 '--output-type=dart|--output-type=dart-multi|--output-type=js', 311 '--output-type=dart|--output-type=dart-multi|--output-type=js',
312 setOutputType), 312 setOutputType),
313 new OptionHandler('--use-cps-ir', passThrough), 313 new OptionHandler('--use-cps-ir', passThrough),
314 new OptionHandler('--no-frequency-based-minification', passThrough), 314 new OptionHandler('--no-frequency-based-minification', passThrough),
315 new OptionHandler('--verbose', setVerbose), 315 new OptionHandler('--verbose', setVerbose),
316 new OptionHandler('--version', (_) => wantVersion = true), 316 new OptionHandler('--version', (_) => wantVersion = true),
317 new OptionHandler('--library-root=.+', setLibraryRoot), 317 new OptionHandler('--library-root=.+', setLibraryRoot),
318 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), 318 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true),
319 new OptionHandler('--allow-mock-compilation', passThrough), 319 new OptionHandler('--allow-mock-compilation', passThrough),
320 new OptionHandler('--fast-startup', passThrough),
320 new OptionHandler('--minify|-m', implyCompilation), 321 new OptionHandler('--minify|-m', implyCompilation),
321 new OptionHandler('--preserve-uris', passThrough), 322 new OptionHandler('--preserve-uris', passThrough),
322 new OptionHandler('--force-strip=.*', setStrip), 323 new OptionHandler('--force-strip=.*', setStrip),
323 new OptionHandler('--disable-diagnostic-colors', 324 new OptionHandler('--disable-diagnostic-colors',
324 (_) => diagnosticHandler.enableColors = false), 325 (_) => diagnosticHandler.enableColors = false),
325 new OptionHandler('--enable-diagnostic-colors', 326 new OptionHandler('--enable-diagnostic-colors',
326 (_) => diagnosticHandler.enableColors = true), 327 (_) => diagnosticHandler.enableColors = true),
327 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 328 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
328 (_) => setCheckedMode('--enable-checked-mode')), 329 (_) => setCheckedMode('--enable-checked-mode')),
329 new OptionHandler('--enable-concrete-type-inference', 330 new OptionHandler('--enable-concrete-type-inference',
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 } else if (exitCode == 253) { 766 } else if (exitCode == 253) {
766 print(">>> TEST CRASH"); 767 print(">>> TEST CRASH");
767 } else { 768 } else {
768 print(">>> TEST FAIL"); 769 print(">>> TEST FAIL");
769 } 770 }
770 stderr.writeln(">>> EOF STDERR"); 771 stderr.writeln(">>> EOF STDERR");
771 subscription.resume(); 772 subscription.resume();
772 }); 773 });
773 }); 774 });
774 } 775 }
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