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

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

Issue 2349163003: Move towards using WorldImpact for codegen (Closed)
Patch Set: Reinsert missing features uses. Created 4 years, 3 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 | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/types/masks.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 // 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/registry.dart' show Registry; 10 import '../common/registry.dart' show Registry;
11 import '../common/resolution.dart' show ResolutionImpact, Target; 11 import '../common/resolution.dart' show ResolutionImpact, Target;
12 import '../constants/expressions.dart'; 12 import '../constants/expressions.dart';
13 import '../dart_types.dart'; 13 import '../dart_types.dart';
14 import '../diagnostics/source_span.dart'; 14 import '../diagnostics/source_span.dart';
15 import '../elements/elements.dart'; 15 import '../elements/elements.dart';
16 import '../tree/tree.dart'; 16 import '../tree/tree.dart';
17 import '../universe/call_structure.dart' show CallStructure; 17 import '../universe/call_structure.dart' show CallStructure;
18 import '../universe/feature.dart'; 18 import '../universe/feature.dart';
19 import '../universe/selector.dart' show Selector; 19 import '../universe/selector.dart' show Selector;
20 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; 20 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse;
21 import '../universe/world_impact.dart' show WorldImpact, WorldImpactBuilder; 21 import '../universe/world_impact.dart' show WorldImpact, WorldImpactBuilderImpl;
22 import '../util/enumset.dart' show EnumSet; 22 import '../util/enumset.dart' show EnumSet;
23 import '../util/util.dart' show Setlet; 23 import '../util/util.dart' show Setlet;
24 import 'members.dart' show ResolverVisitor; 24 import 'members.dart' show ResolverVisitor;
25 import 'send_structure.dart'; 25 import 'send_structure.dart';
26 import 'tree_elements.dart' show TreeElementMapping; 26 import 'tree_elements.dart' show TreeElementMapping;
27 27
28 class ResolutionWorldImpactBuilder extends ResolutionImpact 28 class ResolutionWorldImpactBuilder extends WorldImpactBuilderImpl
29 with WorldImpactBuilder 29 implements NativeRegistry, ResolutionImpact {
30 implements NativeRegistry {
31 final String name; 30 final String name;
32 EnumSet<Feature> _features; 31 EnumSet<Feature> _features;
33 Setlet<MapLiteralUse> _mapLiterals; 32 Setlet<MapLiteralUse> _mapLiterals;
34 Setlet<ListLiteralUse> _listLiterals; 33 Setlet<ListLiteralUse> _listLiterals;
35 Setlet<String> _constSymbolNames; 34 Setlet<String> _constSymbolNames;
36 Setlet<ConstantExpression> _constantLiterals; 35 Setlet<ConstantExpression> _constantLiterals;
37 Setlet<dynamic> _nativeData; 36 Setlet<dynamic> _nativeData;
38 37
39 ResolutionWorldImpactBuilder(this.name); 38 ResolutionWorldImpactBuilder(this.name);
40 39
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 @override 422 @override
424 void registerInstantiatedType(InterfaceType type) { 423 void registerInstantiatedType(InterfaceType type) {
425 registry.registerInstantiation(type); 424 registry.registerInstantiation(type);
426 } 425 }
427 426
428 @override 427 @override
429 DartType resolveTypeFromString(Node node, String typeName) { 428 DartType resolveTypeFromString(Node node, String typeName) {
430 return visitor.resolveTypeFromString(node, typeName); 429 return visitor.resolveTypeFromString(node, typeName);
431 } 430 }
432 } 431 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/types/masks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698