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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ..nativeClasses.clear() | 137 ..nativeClasses.clear() |
138 ..nativeMethods.clear(); | 138 ..nativeMethods.clear(); |
139 | 139 |
140 backend.emitter.readTypeVariables.clear(); | 140 backend.emitter.readTypeVariables.clear(); |
141 | 141 |
142 backend.emitter.oldEmitter | 142 backend.emitter.oldEmitter |
143 ..outputBuffers.clear() | 143 ..outputBuffers.clear() |
144 ..deferredConstants.clear() | 144 ..deferredConstants.clear() |
145 ..isolateProperties = null | 145 ..isolateProperties = null |
146 ..classesCollector = null | 146 ..classesCollector = null |
| 147 ..neededClasses.clear() |
147 ..outputClassLists.clear() | 148 ..outputClassLists.clear() |
148 ..nativeClasses.clear() | 149 ..nativeClasses.clear() |
149 ..mangledFieldNames.clear() | 150 ..mangledFieldNames.clear() |
150 ..mangledGlobalFieldNames.clear() | 151 ..mangledGlobalFieldNames.clear() |
151 ..recordedMangledNames.clear() | 152 ..recordedMangledNames.clear() |
152 ..additionalProperties.clear() | 153 ..additionalProperties.clear() |
153 ..clearCspPrecompiledNodes() | 154 ..clearCspPrecompiledNodes() |
154 ..elementDescriptors.clear(); | 155 ..elementDescriptors.clear(); |
155 | 156 |
156 backend.emitter | 157 backend.emitter |
157 ..outputContainsConstantList = false; | 158 ..outputContainsConstantList = false; |
158 | 159 |
159 backend | 160 backend |
160 ..preMirrorsMethodCount = 0; | 161 ..preMirrorsMethodCount = 0; |
161 | 162 |
162 if (reuseLibrary == null) { | 163 if (reuseLibrary == null) { |
163 reuseLibrary = (LibraryElement library) { | 164 reuseLibrary = (LibraryElement library) { |
164 return new Future.value( | 165 return new Future.value( |
165 library.isPlatformLibrary || | 166 library.isPlatformLibrary || |
166 (packagesAreImmutable && library.isPackageLibrary)); | 167 (packagesAreImmutable && library.isPackageLibrary)); |
167 }; | 168 }; |
168 } | 169 } |
169 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { | 170 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { |
170 oldTag.makeCurrent(); | 171 oldTag.makeCurrent(); |
171 return compiler; | 172 return compiler; |
172 }); | 173 }); |
173 } | 174 } |
174 } | 175 } |
OLD | NEW |