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

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

Issue 582753002: dart2js: add --preserve-uris flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update tests. Created 6 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.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) 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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
(...skipping 27 matching lines...) Expand all
38 this.environment) 38 this.environment)
39 : this.options = options, 39 : this.options = options,
40 this.allowedLibraryCategories = getAllowedLibraryCategories(options), 40 this.allowedLibraryCategories = getAllowedLibraryCategories(options),
41 super( 41 super(
42 outputProvider: outputProvider, 42 outputProvider: outputProvider,
43 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), 43 enableTypeAssertions: hasOption(options, '--enable-checked-mode'),
44 enableUserAssertions: hasOption(options, '--enable-checked-mode'), 44 enableUserAssertions: hasOption(options, '--enable-checked-mode'),
45 trustTypeAnnotations: 45 trustTypeAnnotations:
46 hasOption(options, '--trust-type-annotations'), 46 hasOption(options, '--trust-type-annotations'),
47 enableMinification: hasOption(options, '--minify'), 47 enableMinification: hasOption(options, '--minify'),
48 preserveUris: hasOption(options, '--preserve-uris'),
48 enableNativeLiveTypeAnalysis: 49 enableNativeLiveTypeAnalysis:
49 !hasOption(options, '--disable-native-live-type-analysis'), 50 !hasOption(options, '--disable-native-live-type-analysis'),
50 emitJavaScript: !(hasOption(options, '--output-type=dart') || 51 emitJavaScript: !(hasOption(options, '--output-type=dart') ||
51 hasOption(options, '--output-type=dart-multi')), 52 hasOption(options, '--output-type=dart-multi')),
52 dart2dartMultiFile: hasOption(options, '--output-type=dart-multi'), 53 dart2dartMultiFile: hasOption(options, '--output-type=dart-multi'),
53 generateSourceMap: !hasOption(options, '--no-source-maps'), 54 generateSourceMap: !hasOption(options, '--no-source-maps'),
54 analyzeAllFlag: hasOption(options, '--analyze-all'), 55 analyzeAllFlag: hasOption(options, '--analyze-all'),
55 analyzeOnly: hasOption(options, '--analyze-only'), 56 analyzeOnly: hasOption(options, '--analyze-only'),
56 analyzeMain: hasOption(options, '--analyze-main'), 57 analyzeMain: hasOption(options, '--analyze-main'),
57 analyzeSignaturesOnly: 58 analyzeSignaturesOnly:
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 349 }
349 350
350 void diagnoseCrashInUserCode(String message, exception, stackTrace) { 351 void diagnoseCrashInUserCode(String message, exception, stackTrace) {
351 hasCrashed = true; 352 hasCrashed = true;
352 print('$message: ${tryToString(exception)}'); 353 print('$message: ${tryToString(exception)}');
353 print(tryToString(stackTrace)); 354 print(tryToString(stackTrace));
354 } 355 }
355 356
356 fromEnvironment(String name) => environment[name]; 357 fromEnvironment(String name) => environment[name];
357 } 358 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698