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

Side by Side Diff: pkg/compiler/lib/src/common/resolution.dart

Issue 1464773002: Remove WorldImpact from caches when no longer needed. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Make deferred uncaching global. Created 5 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
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 library dart2js.common.resolution; 6 library dart2js.common.resolution;
7 7
8 import '../common.dart'; 8 import '../common.dart';
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 CoreTypes get coreTypes; 179 CoreTypes get coreTypes;
180 180
181 void resolveTypedef(TypedefElement typdef); 181 void resolveTypedef(TypedefElement typdef);
182 void resolveClass(ClassElement cls); 182 void resolveClass(ClassElement cls);
183 void registerClass(ClassElement cls); 183 void registerClass(ClassElement cls);
184 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); 184 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation);
185 FunctionSignature resolveSignature(FunctionElement function); 185 FunctionSignature resolveSignature(FunctionElement function);
186 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); 186 DartType resolveTypeAnnotation(Element element, TypeAnnotation node);
187 187
188 bool hasBeenResolved(Element element); 188 bool hasBeenResolved(Element element);
189
190 /// Returns the precomputed [WorldImpact] for [element].
189 WorldImpact getWorldImpact(Element element); 191 WorldImpact getWorldImpact(Element element);
192
193 /// Computes the [WorldImpact] for [element].
190 WorldImpact computeWorldImpact(Element element); 194 WorldImpact computeWorldImpact(Element element);
195
196 /// Removes the [WorldImpact] for [element] from the resolution cache. Later
197 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact.
198 void uncacheWorldImpact(Element element);
199
200 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. ,
201 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty
202 /// impact.
203 void emptyCache();
191 } 204 }
192 205
193 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. 206 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`.
194 abstract class Parsing { 207 abstract class Parsing {
195 DiagnosticReporter get reporter; 208 DiagnosticReporter get reporter;
196 void parsePatchClass(ClassElement cls); 209 void parsePatchClass(ClassElement cls);
197 measure(f()); 210 measure(f());
198 ScannerOptions getScannerOptionsFor(Element element); 211 ScannerOptions getScannerOptionsFor(Element element);
199 } 212 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698