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

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

Issue 1839243003: Serialize ResolutionImpact instead of WorldImpact. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 8 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
« no previous file with comments | « no previous file | 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 189
190 ResolutionWorkItem createWorkItem( 190 ResolutionWorkItem createWorkItem(
191 Element element, ItemCompilationContext compilationContext); 191 Element element, ItemCompilationContext compilationContext);
192 192
193 /// Returns the precomputed [ResolutionImpact] for [element].
194 ResolutionImpact getResolutionImpact(Element element);
195
193 /// Returns the precomputed [WorldImpact] for [element]. 196 /// Returns the precomputed [WorldImpact] for [element].
194 WorldImpact getWorldImpact(Element element); 197 WorldImpact getWorldImpact(Element element);
195 198
196 /// Computes the [WorldImpact] for [element]. 199 /// Computes the [WorldImpact] for [element].
197 WorldImpact computeWorldImpact(Element element); 200 WorldImpact computeWorldImpact(Element element);
198 201
199 /// Removes the [WorldImpact] for [element] from the resolution cache. Later 202 /// Removes the [WorldImpact] for [element] from the resolution cache. Later
200 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact. 203 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact.
201 void uncacheWorldImpact(Element element); 204 void uncacheWorldImpact(Element element);
202 205
203 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. , 206 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. ,
204 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty 207 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty
205 /// impact. 208 /// impact.
206 void emptyCache(); 209 void emptyCache();
207 } 210 }
208 211
209 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. 212 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`.
210 abstract class Parsing { 213 abstract class Parsing {
211 DiagnosticReporter get reporter; 214 DiagnosticReporter get reporter;
212 void parsePatchClass(ClassElement cls); 215 void parsePatchClass(ClassElement cls);
213 measure(f()); 216 measure(f());
214 ScannerOptions getScannerOptionsFor(Element element); 217 ScannerOptions getScannerOptionsFor(Element element);
215 } 218 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698