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

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

Issue 1808133002: Revert "Use JS backend in serialization_analysis_test" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 189
190 ResolutionWorkItem createWorkItem(
191 Element element, ItemCompilationContext compilationContext);
192
193 /// Returns the precomputed [WorldImpact] for [element]. 190 /// Returns the precomputed [WorldImpact] for [element].
194 WorldImpact getWorldImpact(Element element); 191 WorldImpact getWorldImpact(Element element);
195 192
196 /// Computes the [WorldImpact] for [element]. 193 /// Computes the [WorldImpact] for [element].
197 WorldImpact computeWorldImpact(Element element); 194 WorldImpact computeWorldImpact(Element element);
198 195
199 /// Removes the [WorldImpact] for [element] from the resolution cache. Later 196 /// Removes the [WorldImpact] for [element] from the resolution cache. Later
200 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact. 197 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact.
201 void uncacheWorldImpact(Element element); 198 void uncacheWorldImpact(Element element);
202 199
203 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. , 200 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. ,
204 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty 201 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty
205 /// impact. 202 /// impact.
206 void emptyCache(); 203 void emptyCache();
207 } 204 }
208 205
209 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. 206 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`.
210 abstract class Parsing { 207 abstract class Parsing {
211 DiagnosticReporter get reporter; 208 DiagnosticReporter get reporter;
212 void parsePatchClass(ClassElement cls); 209 void parsePatchClass(ClassElement cls);
213 measure(f()); 210 measure(f());
214 ScannerOptions getScannerOptionsFor(Element element); 211 ScannerOptions getScannerOptionsFor(Element element);
215 } 212 }
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