| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_incremental; | 5 part of dart2js_incremental; |
| 6 | 6 |
| 7 /// Do not call this method directly. It will be made private. | 7 /// Do not call this method directly. It will be made private. |
| 8 // TODO(ahe): Make this method private. | 8 // TODO(ahe): Make this method private. |
| 9 Future<Compiler> reuseCompiler( | 9 Future<Compiler> reuseCompiler( |
| 10 {DiagnosticHandler diagnosticHandler, | 10 {DiagnosticHandler diagnosticHandler, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 backend.emitter.oldEmitter | 133 backend.emitter.oldEmitter |
| 134 ..outputBuffers.clear() | 134 ..outputBuffers.clear() |
| 135 ..classesCollector = null | 135 ..classesCollector = null |
| 136 ..mangledFieldNames.clear() | 136 ..mangledFieldNames.clear() |
| 137 ..mangledGlobalFieldNames.clear() | 137 ..mangledGlobalFieldNames.clear() |
| 138 ..recordedMangledNames.clear() | 138 ..recordedMangledNames.clear() |
| 139 ..clearCspPrecompiledNodes() | 139 ..clearCspPrecompiledNodes() |
| 140 ..elementDescriptors.clear(); | 140 ..elementDescriptors.clear(); |
| 141 | 141 |
| 142 backend.emitter | |
| 143 ..nativeClassesAndSubclasses.clear() | |
| 144 ..outputContainsConstantList = false | |
| 145 ..neededClasses.clear() | |
| 146 ..outputClassLists.clear() | |
| 147 ..outputConstantLists.clear() | |
| 148 ..outputStaticLists.clear() | |
| 149 ..outputStaticNonFinalFieldLists.clear() | |
| 150 ..outputLibraryLists.clear(); | |
| 151 | |
| 152 backend | 142 backend |
| 153 ..preMirrorsMethodCount = 0; | 143 ..preMirrorsMethodCount = 0; |
| 154 | 144 |
| 155 if (reuseLibrary == null) { | 145 if (reuseLibrary == null) { |
| 156 reuseLibrary = (LibraryElement library) { | 146 reuseLibrary = (LibraryElement library) { |
| 157 return new Future.value( | 147 return new Future.value( |
| 158 library.isPlatformLibrary || | 148 library.isPlatformLibrary || |
| 159 (packagesAreImmutable && library.isPackageLibrary)); | 149 (packagesAreImmutable && library.isPackageLibrary)); |
| 160 }; | 150 }; |
| 161 } | 151 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 final Map<String, String> output = new Map<String, String>(); | 186 final Map<String, String> output = new Map<String, String>(); |
| 197 | 187 |
| 198 EventSink<String> call(String name, String extension) { | 188 EventSink<String> call(String name, String extension) { |
| 199 return new StringEventSink((String data) { | 189 return new StringEventSink((String data) { |
| 200 output['$name.$extension'] = data; | 190 output['$name.$extension'] = data; |
| 201 }); | 191 }); |
| 202 } | 192 } |
| 203 | 193 |
| 204 String operator[] (String key) => output[key]; | 194 String operator[] (String key) => output[key]; |
| 205 } | 195 } |
| OLD | NEW |