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 Compiler reuseCompiler( | 9 Compiler reuseCompiler( |
10 {DiagnosticHandler diagnosticHandler, | 10 {DiagnosticHandler diagnosticHandler, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ..classesCollector = null | 121 ..classesCollector = null |
122 ..neededClasses.clear() | 122 ..neededClasses.clear() |
123 ..outputClassLists.clear() | 123 ..outputClassLists.clear() |
124 ..nativeClasses.clear() | 124 ..nativeClasses.clear() |
125 ..mangledFieldNames.clear() | 125 ..mangledFieldNames.clear() |
126 ..mangledGlobalFieldNames.clear() | 126 ..mangledGlobalFieldNames.clear() |
127 ..recordedMangledNames.clear() | 127 ..recordedMangledNames.clear() |
128 ..additionalProperties.clear() | 128 ..additionalProperties.clear() |
129 ..readTypeVariables.clear() | 129 ..readTypeVariables.clear() |
130 ..instantiatedClasses = null | 130 ..instantiatedClasses = null |
131 ..precompiledFunction.clear() | 131 ..clearCspPrecompiledNodes() |
132 ..precompiledConstructorNames.clear() | |
133 ..hasMakeConstantList = false | 132 ..hasMakeConstantList = false |
134 ..elementDescriptors.clear(); | 133 ..elementDescriptors.clear(); |
135 | 134 |
136 backend | 135 backend |
137 ..preMirrorsMethodCount = 0; | 136 ..preMirrorsMethodCount = 0; |
138 | 137 |
139 if (reuseLibrary == null) { | 138 if (reuseLibrary == null) { |
140 reuseLibrary = (LibraryElement library) { | 139 reuseLibrary = (LibraryElement library) { |
141 return | 140 return |
142 library.isPlatformLibrary || | 141 library.isPlatformLibrary || |
143 (packagesAreImmutable && library.isPackageLibrary); | 142 (packagesAreImmutable && library.isPackageLibrary); |
144 }; | 143 }; |
145 } | 144 } |
146 compiler.libraryLoader.reset(reuseLibrary: reuseLibrary); | 145 compiler.libraryLoader.reset(reuseLibrary: reuseLibrary); |
147 } | 146 } |
148 oldTag.makeCurrent(); | 147 oldTag.makeCurrent(); |
149 return compiler; | 148 return compiler; |
150 } | 149 } |
OLD | NEW |