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

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

Issue 11304021: Add NativeEnqueuer to work with the Enqueuer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add --enable-native-live-type-analysis Created 8 years, 1 month 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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; 5 library dart2js;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:uri'; 8 import 'dart:uri';
9 import 'dart:utf'; 9 import 'dart:utf';
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 new OptionHandler('--disable-diagnostic-colors', 156 new OptionHandler('--disable-diagnostic-colors',
157 (_) => enableColors = false), 157 (_) => enableColors = false),
158 new OptionHandler('--enable-diagnostic-colors', (_) => enableColors = true), 158 new OptionHandler('--enable-diagnostic-colors', (_) => enableColors = true),
159 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 159 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
160 (_) => passThrough('--enable-checked-mode')), 160 (_) => passThrough('--enable-checked-mode')),
161 new OptionHandler('--enable-concrete-type-inference', 161 new OptionHandler('--enable-concrete-type-inference',
162 (_) => passThrough('--enable-concrete-type-inference')), 162 (_) => passThrough('--enable-concrete-type-inference')),
163 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 163 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
164 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), 164 new OptionHandler('--package-root=.+|-p.+', setPackageRoot),
165 new OptionHandler('--disallow-unsafe-eval', passThrough), 165 new OptionHandler('--disallow-unsafe-eval', passThrough),
166 new OptionHandler('--enable-native-live-type-analysis', passThrough),
166 // The following two options must come last. 167 // The following two options must come last.
167 new OptionHandler('-.*', (String argument) { 168 new OptionHandler('-.*', (String argument) {
168 helpAndFail('Error: Unknown option "$argument".'); 169 helpAndFail('Error: Unknown option "$argument".');
169 }), 170 }),
170 new OptionHandler('.*', (String argument) { 171 new OptionHandler('.*', (String argument) {
171 arguments.add(nativeToUriPath(argument)); 172 arguments.add(nativeToUriPath(argument));
172 }) 173 })
173 ]; 174 ];
174 175
175 parseCommandLine(handlers, argv); 176 parseCommandLine(handlers, argv);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 --library-root=<directory> 396 --library-root=<directory>
396 Where to find the Dart platform libraries. 397 Where to find the Dart platform libraries.
397 398
398 --allow-mock-compilation 399 --allow-mock-compilation
399 Do not generate a call to main if either of the following 400 Do not generate a call to main if either of the following
400 libraries are used: dart:dom, dart:html dart:io. 401 libraries are used: dart:dom, dart:html dart:io.
401 402
402 --enable-concrete-type-inference 403 --enable-concrete-type-inference
403 Enable experimental concrete type inference. 404 Enable experimental concrete type inference.
404 405
406 --enable-native-live-type-analysis
ahe 2012/11/14 13:51:30 It's great that you added documentation. I forgot
407 Remove unused native types from dart:html and related libraries. This is
408 expected to become the default behavior.
409
405 --disallow-unsafe-eval 410 --disallow-unsafe-eval
406 Disables dynamic generation of code in the generated output. This is 411 Disables dynamic generation of code in the generated output. This is
407 necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/). 412 necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).
408 This flag is not continuously tested. Please report breakages and we 413 This flag is not continuously tested. Please report breakages and we
409 will fix them as soon as possible.'''); 414 will fix them as soon as possible.''');
410 } 415 }
411 416
412 void helpAndExit(bool verbose) { 417 void helpAndExit(bool verbose) {
413 if (verbose) { 418 if (verbose) {
414 verboseHelp(); 419 verboseHelp();
(...skipping 18 matching lines...) Expand all
433 } catch (ignored) { 438 } catch (ignored) {
434 print('Internal error: error while printing exception'); 439 print('Internal error: error while printing exception');
435 } 440 }
436 try { 441 try {
437 print(trace); 442 print(trace);
438 } finally { 443 } finally {
439 exit(253); // 253 is recognized as a crash by our test scripts. 444 exit(253); // 253 is recognized as a crash by our test scripts.
440 } 445 }
441 } 446 }
442 } 447 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698