Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: dart/pkg/dart2js_incremental/lib/caching_compiler.dart

Issue 768993003: Track emitted classes in incremental compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove duplicated word in comment. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ..nativeClasses.clear() 138 ..nativeClasses.clear()
139 ..nativeMethods.clear(); 139 ..nativeMethods.clear();
140 140
141 backend.emitter.readTypeVariables.clear(); 141 backend.emitter.readTypeVariables.clear();
142 142
143 backend.emitter.oldEmitter 143 backend.emitter.oldEmitter
144 ..outputBuffers.clear() 144 ..outputBuffers.clear()
145 ..deferredConstants.clear() 145 ..deferredConstants.clear()
146 ..isolateProperties = null 146 ..isolateProperties = null
147 ..classesCollector = null 147 ..classesCollector = null
148 ..neededClasses.clear()
148 ..outputClassLists.clear() 149 ..outputClassLists.clear()
149 ..nativeClasses.clear() 150 ..nativeClasses.clear()
150 ..mangledFieldNames.clear() 151 ..mangledFieldNames.clear()
151 ..mangledGlobalFieldNames.clear() 152 ..mangledGlobalFieldNames.clear()
152 ..recordedMangledNames.clear() 153 ..recordedMangledNames.clear()
153 ..additionalProperties.clear() 154 ..additionalProperties.clear()
154 ..clearCspPrecompiledNodes() 155 ..clearCspPrecompiledNodes()
155 ..elementDescriptors.clear(); 156 ..elementDescriptors.clear();
156 157
157 backend.emitter 158 backend.emitter
158 ..outputContainsConstantList = false; 159 ..outputContainsConstantList = false;
159 160
160 backend 161 backend
161 ..preMirrorsMethodCount = 0; 162 ..preMirrorsMethodCount = 0;
162 163
163 if (reuseLibrary == null) { 164 if (reuseLibrary == null) {
164 reuseLibrary = (LibraryElement library) { 165 reuseLibrary = (LibraryElement library) {
165 return new Future.value( 166 return new Future.value(
166 library.isPlatformLibrary || 167 library.isPlatformLibrary ||
167 (packagesAreImmutable && library.isPackageLibrary)); 168 (packagesAreImmutable && library.isPackageLibrary));
168 }; 169 };
169 } 170 }
170 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { 171 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) {
171 oldTag.makeCurrent(); 172 oldTag.makeCurrent();
172 return compiler; 173 return compiler;
173 }); 174 });
174 } 175 }
175 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698