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

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

Issue 24267004: Emit CSP code in separate file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make tests pass Created 7 years, 3 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
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 25 matching lines...) Expand all
36 ssa.GENERATE_SSA_TRACE ? outputProvider('dart', 'cfg') : null), 36 ssa.GENERATE_SSA_TRACE ? outputProvider('dart', 'cfg') : null),
37 outputProvider: outputProvider, 37 outputProvider: outputProvider,
38 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), 38 enableTypeAssertions: hasOption(options, '--enable-checked-mode'),
39 enableUserAssertions: hasOption(options, '--enable-checked-mode'), 39 enableUserAssertions: hasOption(options, '--enable-checked-mode'),
40 trustTypeAnnotations: 40 trustTypeAnnotations:
41 hasOption(options, '--trust-type-annotations'), 41 hasOption(options, '--trust-type-annotations'),
42 enableMinification: hasOption(options, '--minify'), 42 enableMinification: hasOption(options, '--minify'),
43 enableNativeLiveTypeAnalysis: 43 enableNativeLiveTypeAnalysis:
44 !hasOption(options, '--disable-native-live-type-analysis'), 44 !hasOption(options, '--disable-native-live-type-analysis'),
45 emitJavaScript: !hasOption(options, '--output-type=dart'), 45 emitJavaScript: !hasOption(options, '--output-type=dart'),
46 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
47 analyzeAllFlag: hasOption(options, '--analyze-all'), 46 analyzeAllFlag: hasOption(options, '--analyze-all'),
48 analyzeOnly: hasOption(options, '--analyze-only'), 47 analyzeOnly: hasOption(options, '--analyze-only'),
49 analyzeSignaturesOnly: 48 analyzeSignaturesOnly:
50 hasOption(options, '--analyze-signatures-only'), 49 hasOption(options, '--analyze-signatures-only'),
51 strips: extractCsvOption(options, '--force-strip='), 50 strips: extractCsvOption(options, '--force-strip='),
52 enableConcreteTypeInference: 51 enableConcreteTypeInference:
53 hasOption(options, '--enable-concrete-type-inference'), 52 hasOption(options, '--enable-concrete-type-inference'),
54 disableTypeInferenceFlag: 53 disableTypeInferenceFlag:
55 hasOption(options, '--disable-type-inference'), 54 hasOption(options, '--disable-type-inference'),
56 preserveComments: hasOption(options, '--preserve-comments'), 55 preserveComments: hasOption(options, '--preserve-comments'),
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 rethrow; 314 rethrow;
316 } 315 }
317 } 316 }
318 317
319 void diagnoseCrashInUserCode(String message, exception, stackTrace) { 318 void diagnoseCrashInUserCode(String message, exception, stackTrace) {
320 hasCrashed = true; 319 hasCrashed = true;
321 print('$message: ${tryToString(exception)}'); 320 print('$message: ${tryToString(exception)}');
322 print(tryToString(stackTrace)); 321 print(tryToString(stackTrace));
323 } 322 }
324 } 323 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698