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

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

Issue 845663005: dart2js: Clear tables during incremental compilation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 backend.emitter.nativeEmitter 132 backend.emitter.nativeEmitter
133 ..nativeClasses.clear() 133 ..nativeClasses.clear()
134 ..nativeMethods.clear(); 134 ..nativeMethods.clear();
135 135
136 backend.emitter.readTypeVariables.clear(); 136 backend.emitter.readTypeVariables.clear();
137 137
138 backend.emitter.oldEmitter 138 backend.emitter.oldEmitter
139 ..outputBuffers.clear() 139 ..outputBuffers.clear()
140 ..isolateProperties = null 140 ..isolateProperties = null
141 ..classesCollector = null 141 ..classesCollector = null
142 ..neededClasses.clear()
143 ..outputClassLists.clear()
144 ..nativeClasses.clear() 142 ..nativeClasses.clear()
145 ..mangledFieldNames.clear() 143 ..mangledFieldNames.clear()
146 ..mangledGlobalFieldNames.clear() 144 ..mangledGlobalFieldNames.clear()
147 ..recordedMangledNames.clear() 145 ..recordedMangledNames.clear()
148 ..additionalProperties.clear() 146 ..additionalProperties.clear()
149 ..clearCspPrecompiledNodes() 147 ..clearCspPrecompiledNodes()
150 ..elementDescriptors.clear(); 148 ..elementDescriptors.clear();
151 149
152 backend.emitter 150 backend.emitter
153 ..outputContainsConstantList = false; 151 ..outputContainsConstantList = false
152 ..neededClasses.clear()
153 ..outputClassLists.clear()
154 ..outputConstantLists.clear()
155 ..outputStaticLists.clear()
156 ..outputStaticNonFinalFieldLists.clear()
157 ..outputLibraryLists.clear();
154 158
155 backend 159 backend
156 ..preMirrorsMethodCount = 0; 160 ..preMirrorsMethodCount = 0;
157 161
158 if (reuseLibrary == null) { 162 if (reuseLibrary == null) {
159 reuseLibrary = (LibraryElement library) { 163 reuseLibrary = (LibraryElement library) {
160 return new Future.value( 164 return new Future.value(
161 library.isPlatformLibrary || 165 library.isPlatformLibrary ||
162 (packagesAreImmutable && library.isPackageLibrary)); 166 (packagesAreImmutable && library.isPackageLibrary));
163 }; 167 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 final Map<String, String> output = new Map<String, String>(); 203 final Map<String, String> output = new Map<String, String>();
200 204
201 EventSink<String> call(String name, String extension) { 205 EventSink<String> call(String name, String extension) {
202 return new StringEventSink((String data) { 206 return new StringEventSink((String data) {
203 output['$name.$extension'] = data; 207 output['$name.$extension'] = data;
204 }); 208 });
205 } 209 }
206 210
207 String operator[] (String key) => output[key]; 211 String operator[] (String key) => output[key];
208 } 212 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698