| OLD | NEW |
| 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 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 this.useCpsIr: false, | 1049 this.useCpsIr: false, |
| 1050 this.useFrequencyNamer: false, | 1050 this.useFrequencyNamer: false, |
| 1051 this.verbose: false, | 1051 this.verbose: false, |
| 1052 this.sourceMapUri: null, | 1052 this.sourceMapUri: null, |
| 1053 this.outputUri: null, | 1053 this.outputUri: null, |
| 1054 this.buildId: UNDETERMINED_BUILD_ID, | 1054 this.buildId: UNDETERMINED_BUILD_ID, |
| 1055 this.terseDiagnostics: false, | 1055 this.terseDiagnostics: false, |
| 1056 this.deferredMapUri: null, | 1056 this.deferredMapUri: null, |
| 1057 this.dumpInfo: false, | 1057 this.dumpInfo: false, |
| 1058 this.showPackageWarnings: false, | 1058 this.showPackageWarnings: false, |
| 1059 bool useStartupEmitter: false, |
| 1059 this.useContentSecurityPolicy: false, | 1060 this.useContentSecurityPolicy: false, |
| 1060 this.suppressWarnings: false, | 1061 this.suppressWarnings: false, |
| 1061 this.fatalWarnings: false, | 1062 this.fatalWarnings: false, |
| 1062 bool hasIncrementalSupport: false, | 1063 bool hasIncrementalSupport: false, |
| 1063 this.enableExperimentalMirrors: false, | 1064 this.enableExperimentalMirrors: false, |
| 1064 this.allowNativeExtensions: false, | 1065 this.allowNativeExtensions: false, |
| 1065 this.generateCodeWithCompileTimeErrors: false, | 1066 this.generateCodeWithCompileTimeErrors: false, |
| 1066 this.testMode: false, | 1067 this.testMode: false, |
| 1067 api.CompilerOutput outputProvider, | 1068 api.CompilerOutput outputProvider, |
| 1068 List<String> strips: const []}) | 1069 List<String> strips: const []}) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1093 } | 1094 } |
| 1094 | 1095 |
| 1095 // TODO(johnniwinther): Separate the dependency tracking from the enqueuing | 1096 // TODO(johnniwinther): Separate the dependency tracking from the enqueuing |
| 1096 // for global dependencies. | 1097 // for global dependencies. |
| 1097 globalDependencies = | 1098 globalDependencies = |
| 1098 new CodegenRegistry(this, new TreeElementMapping(null)); | 1099 new CodegenRegistry(this, new TreeElementMapping(null)); |
| 1099 | 1100 |
| 1100 if (emitJavaScript) { | 1101 if (emitJavaScript) { |
| 1101 js_backend.JavaScriptBackend jsBackend = | 1102 js_backend.JavaScriptBackend jsBackend = |
| 1102 new js_backend.JavaScriptBackend( | 1103 new js_backend.JavaScriptBackend( |
| 1103 this, generateSourceMap: generateSourceMap); | 1104 this, generateSourceMap: generateSourceMap, |
| 1105 useStartupEmitter: useStartupEmitter); |
| 1104 backend = jsBackend; | 1106 backend = jsBackend; |
| 1105 } else { | 1107 } else { |
| 1106 backend = new dart_backend.DartBackend(this, strips, | 1108 backend = new dart_backend.DartBackend(this, strips, |
| 1107 multiFile: dart2dartMultiFile); | 1109 multiFile: dart2dartMultiFile); |
| 1108 if (dumpInfo) { | 1110 if (dumpInfo) { |
| 1109 throw new ArgumentError('--dump-info is not supported for dart2dart.'); | 1111 throw new ArgumentError('--dump-info is not supported for dart2dart.'); |
| 1110 } | 1112 } |
| 1111 } | 1113 } |
| 1112 | 1114 |
| 1113 tasks = [ | 1115 tasks = [ |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 InterfaceType streamType([DartType elementType]) { | 2512 InterfaceType streamType([DartType elementType]) { |
| 2511 InterfaceType type = streamClass.computeType(compiler); | 2513 InterfaceType type = streamClass.computeType(compiler); |
| 2512 if (elementType == null) { | 2514 if (elementType == null) { |
| 2513 return streamClass.rawType; | 2515 return streamClass.rawType; |
| 2514 } | 2516 } |
| 2515 return type.createInstantiation([elementType]); | 2517 return type.createInstantiation([elementType]); |
| 2516 } | 2518 } |
| 2517 } | 2519 } |
| 2518 | 2520 |
| 2519 typedef void InternalErrorFunction(Spannable location, String message); | 2521 typedef void InternalErrorFunction(Spannable location, String message); |
| OLD | NEW |