| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 ..isolateProperties = null | 128 ..isolateProperties = null |
| 129 ..classesCollector = null | 129 ..classesCollector = null |
| 130 ..neededClasses.clear() | 130 ..neededClasses.clear() |
| 131 ..outputClassLists.clear() | 131 ..outputClassLists.clear() |
| 132 ..nativeClasses.clear() | 132 ..nativeClasses.clear() |
| 133 ..mangledFieldNames.clear() | 133 ..mangledFieldNames.clear() |
| 134 ..mangledGlobalFieldNames.clear() | 134 ..mangledGlobalFieldNames.clear() |
| 135 ..recordedMangledNames.clear() | 135 ..recordedMangledNames.clear() |
| 136 ..additionalProperties.clear() | 136 ..additionalProperties.clear() |
| 137 ..clearCspPrecompiledNodes() | 137 ..clearCspPrecompiledNodes() |
| 138 ..hasMakeConstantList = false | |
| 139 ..elementDescriptors.clear(); | 138 ..elementDescriptors.clear(); |
| 140 | 139 |
| 140 backend.emitter |
| 141 ..outputContainsConstantList = false; |
| 142 |
| 141 backend | 143 backend |
| 142 ..preMirrorsMethodCount = 0; | 144 ..preMirrorsMethodCount = 0; |
| 143 | 145 |
| 144 if (reuseLibrary == null) { | 146 if (reuseLibrary == null) { |
| 145 reuseLibrary = (LibraryElement library) { | 147 reuseLibrary = (LibraryElement library) { |
| 146 return new Future.value( | 148 return new Future.value( |
| 147 library.isPlatformLibrary || | 149 library.isPlatformLibrary || |
| 148 (packagesAreImmutable && library.isPackageLibrary)); | 150 (packagesAreImmutable && library.isPackageLibrary)); |
| 149 }; | 151 }; |
| 150 } | 152 } |
| 151 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { | 153 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { |
| 152 oldTag.makeCurrent(); | 154 oldTag.makeCurrent(); |
| 153 return compiler; | 155 return compiler; |
| 154 }); | 156 }); |
| 155 } | 157 } |
| 156 } | 158 } |
| OLD | NEW |