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

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

Issue 476583003: Allow dart2dart to output one file per library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address floitsch's comments Created 6 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 917
918 Compiler({this.enableTypeAssertions: false, 918 Compiler({this.enableTypeAssertions: false,
919 this.enableUserAssertions: false, 919 this.enableUserAssertions: false,
920 this.trustTypeAnnotations: false, 920 this.trustTypeAnnotations: false,
921 this.enableConcreteTypeInference: false, 921 this.enableConcreteTypeInference: false,
922 bool disableTypeInferenceFlag: false, 922 bool disableTypeInferenceFlag: false,
923 this.maxConcreteTypeSize: 5, 923 this.maxConcreteTypeSize: 5,
924 this.enableMinification: false, 924 this.enableMinification: false,
925 this.enableNativeLiveTypeAnalysis: false, 925 this.enableNativeLiveTypeAnalysis: false,
926 bool emitJavaScript: true, 926 bool emitJavaScript: true,
927 bool dart2dartMultiFile: false,
927 bool generateSourceMap: true, 928 bool generateSourceMap: true,
928 bool analyzeAllFlag: false, 929 bool analyzeAllFlag: false,
929 bool analyzeOnly: false, 930 bool analyzeOnly: false,
930 this.analyzeMain: false, 931 this.analyzeMain: false,
931 bool analyzeSignaturesOnly: false, 932 bool analyzeSignaturesOnly: false,
932 this.preserveComments: false, 933 this.preserveComments: false,
933 this.verbose: false, 934 this.verbose: false,
934 this.sourceMapUri: null, 935 this.sourceMapUri: null,
935 this.outputUri: null, 936 this.outputUri: null,
936 this.buildId: UNDETERMINED_BUILD_ID, 937 this.buildId: UNDETERMINED_BUILD_ID,
(...skipping 30 matching lines...) Expand all
967 new CodegenRegistry(this, new TreeElementMapping(null)); 968 new CodegenRegistry(this, new TreeElementMapping(null));
968 969
969 closureMapping.ClosureNamer closureNamer; 970 closureMapping.ClosureNamer closureNamer;
970 if (emitJavaScript) { 971 if (emitJavaScript) {
971 js_backend.JavaScriptBackend jsBackend = 972 js_backend.JavaScriptBackend jsBackend =
972 new js_backend.JavaScriptBackend(this, generateSourceMap); 973 new js_backend.JavaScriptBackend(this, generateSourceMap);
973 closureNamer = jsBackend.namer; 974 closureNamer = jsBackend.namer;
974 backend = jsBackend; 975 backend = jsBackend;
975 } else { 976 } else {
976 closureNamer = new closureMapping.ClosureNamer(); 977 closureNamer = new closureMapping.ClosureNamer();
977 backend = new dart_backend.DartBackend(this, strips); 978 backend = new dart_backend.DartBackend(this, strips,
979 multiFile: dart2dartMultiFile);
978 } 980 }
979 981
980 tasks = [ 982 tasks = [
981 libraryLoader = new LibraryLoaderTask(this), 983 libraryLoader = new LibraryLoaderTask(this),
982 scanner = new ScannerTask(this), 984 scanner = new ScannerTask(this),
983 dietParser = new DietParserTask(this), 985 dietParser = new DietParserTask(this),
984 parser = new ParserTask(this), 986 parser = new ParserTask(this),
985 patchParser = new PatchParserTask(this), 987 patchParser = new PatchParserTask(this),
986 resolver = new ResolverTask(this, backend.constantCompilerTask), 988 resolver = new ResolverTask(this, backend.constantCompilerTask),
987 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer), 989 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer),
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 int warnings = 0; 2114 int warnings = 0;
2113 int hints = 0; 2115 int hints = 0;
2114 } 2116 }
2115 2117
2116 class GenericTask extends CompilerTask { 2118 class GenericTask extends CompilerTask {
2117 final String name; 2119 final String name;
2118 2120
2119 GenericTask(this.name, Compiler compiler) 2121 GenericTask(this.name, Compiler compiler)
2120 : super(compiler); 2122 : super(compiler);
2121 } 2123 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/apiimpl.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698