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

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

Issue 2531303002: Decouple WorkItem from Compiler (Closed)
Patch Set: Updated cf. comments. Created 4 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library dart2js.resolution.registry; 5 library dart2js.resolution.registry;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/backend_api.dart' 8 import '../common/backend_api.dart'
9 show Backend, ForeignResolver, NativeRegistry; 9 show Backend, ForeignResolver, NativeRegistry;
10 import '../common/resolution.dart' show ResolutionImpact, Target; 10 import '../common/resolution.dart' show ResolutionImpact, Target;
(...skipping 18 matching lines...) Expand all
29 final String name; 29 final String name;
30 EnumSet<Feature> _features; 30 EnumSet<Feature> _features;
31 Setlet<MapLiteralUse> _mapLiterals; 31 Setlet<MapLiteralUse> _mapLiterals;
32 Setlet<ListLiteralUse> _listLiterals; 32 Setlet<ListLiteralUse> _listLiterals;
33 Setlet<String> _constSymbolNames; 33 Setlet<String> _constSymbolNames;
34 Setlet<ConstantExpression> _constantLiterals; 34 Setlet<ConstantExpression> _constantLiterals;
35 Setlet<dynamic> _nativeData; 35 Setlet<dynamic> _nativeData;
36 36
37 ResolutionWorldImpactBuilder(this.name); 37 ResolutionWorldImpactBuilder(this.name);
38 38
39 @override
40 bool get isEmpty => false;
41
39 void registerMapLiteral(MapLiteralUse mapLiteralUse) { 42 void registerMapLiteral(MapLiteralUse mapLiteralUse) {
40 assert(mapLiteralUse != null); 43 assert(mapLiteralUse != null);
41 if (_mapLiterals == null) { 44 if (_mapLiterals == null) {
42 _mapLiterals = new Setlet<MapLiteralUse>(); 45 _mapLiterals = new Setlet<MapLiteralUse>();
43 } 46 }
44 _mapLiterals.add(mapLiteralUse); 47 _mapLiterals.add(mapLiteralUse);
45 } 48 }
46 49
47 @override 50 @override
48 Iterable<MapLiteralUse> get mapLiterals { 51 Iterable<MapLiteralUse> get mapLiterals {
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 @override 431 @override
429 void registerInstantiatedType(InterfaceType type) { 432 void registerInstantiatedType(InterfaceType type) {
430 registry.registerInstantiation(type); 433 registry.registerInstantiation(type);
431 } 434 }
432 435
433 @override 436 @override
434 DartType resolveTypeFromString(Node node, String typeName) { 437 DartType resolveTypeFromString(Node node, String typeName) {
435 return visitor.resolveTypeFromString(node, typeName); 438 return visitor.resolveTypeFromString(node, typeName);
436 } 439 }
437 } 440 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel.dart ('k') | pkg/compiler/lib/src/serialization/impact_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698