| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ..trivialNsmHandlers.clear(); | 98 ..trivialNsmHandlers.clear(); |
| 99 | 99 |
| 100 backend.emitter.typeTestEmitter | 100 backend.emitter.typeTestEmitter |
| 101 ..checkedClasses = null | 101 ..checkedClasses = null |
| 102 ..checkedFunctionTypes = null | 102 ..checkedFunctionTypes = null |
| 103 ..checkedGenericFunctionTypes.clear() | 103 ..checkedGenericFunctionTypes.clear() |
| 104 ..checkedNonGenericFunctionTypes.clear() | 104 ..checkedNonGenericFunctionTypes.clear() |
| 105 ..rtiNeededClasses.clear() | 105 ..rtiNeededClasses.clear() |
| 106 ..cachedClassesUsingTypeVariableTests = null; | 106 ..cachedClassesUsingTypeVariableTests = null; |
| 107 | 107 |
| 108 backend.emitter.interceptorEmitter | 108 backend.emitter.oldEmitter.interceptorEmitter |
| 109 ..interceptorInvocationNames.clear(); | 109 ..interceptorInvocationNames.clear(); |
| 110 | 110 |
| 111 backend.emitter.oldEmitter.metadataEmitter | 111 backend.emitter.oldEmitter.metadataEmitter |
| 112 ..globalMetadata.clear() | 112 ..globalMetadata.clear() |
| 113 ..globalMetadataMap.clear(); | 113 ..globalMetadataMap.clear(); |
| 114 | 114 |
| 115 backend.emitter.nativeEmitter | 115 backend.emitter.nativeEmitter |
| 116 ..nativeBuffer.clear() | 116 ..nativeBuffer.clear() |
| 117 ..nativeClasses.clear() | 117 ..nativeClasses.clear() |
| 118 ..nativeMethods.clear(); | 118 ..nativeMethods.clear(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 146 library.isPlatformLibrary || | 146 library.isPlatformLibrary || |
| 147 (packagesAreImmutable && library.isPackageLibrary)); | 147 (packagesAreImmutable && library.isPackageLibrary)); |
| 148 }; | 148 }; |
| 149 } | 149 } |
| 150 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { | 150 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { |
| 151 oldTag.makeCurrent(); | 151 oldTag.makeCurrent(); |
| 152 return compiler; | 152 return compiler; |
| 153 }); | 153 }); |
| 154 } | 154 } |
| 155 } | 155 } |
| OLD | NEW |