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

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

Issue 2827283002: Implement subtype relation for kernel based elements. (Closed)
Patch Set: Add remaining checks of BackendUsage Created 3 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
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' show ForeignResolver, NativeRegistry; 8 import '../common/backend_api.dart' show ForeignResolver, NativeRegistry;
9 import '../common/resolution.dart' show ResolutionImpact, Target; 9 import '../common/resolution.dart' show ResolutionImpact, Target;
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 if (_constantLiterals != null) { 141 if (_constantLiterals != null) {
142 sb.write('\n const-literals:'); 142 sb.write('\n const-literals:');
143 for (ConstantExpression constant in _constantLiterals) { 143 for (ConstantExpression constant in _constantLiterals) {
144 sb.write('\n ${constant.toDartText()}'); 144 sb.write('\n ${constant.toDartText()}');
145 } 145 }
146 } 146 }
147 if (_constSymbolNames != null) { 147 if (_constSymbolNames != null) {
148 sb.write('\n const-symbol-names: $_constSymbolNames'); 148 sb.write('\n const-symbol-names: $_constSymbolNames');
149 } 149 }
150 if (_nativeData != null) {
151 sb.write('\n native-data:');
152 for (var data in _nativeData) {
153 sb.write('\n $data');
154 }
155 }
150 return sb.toString(); 156 return sb.toString();
151 } 157 }
152 } 158 }
153 159
154 /// [ResolutionRegistry] collects all resolution information. It stores node 160 /// [ResolutionRegistry] collects all resolution information. It stores node
155 /// related information in a [TreeElements] mapping and registers calls with 161 /// related information in a [TreeElements] mapping and registers calls with
156 /// [Backend], [World] and [Enqueuer]. 162 /// [Backend], [World] and [Enqueuer].
157 // TODO(johnniwinther): Split this into an interface and implementation class. 163 // TODO(johnniwinther): Split this into an interface and implementation class.
158 class ResolutionRegistry { 164 class ResolutionRegistry {
159 final Target target; 165 final Target target;
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 @override 437 @override
432 void registerInstantiatedType(ResolutionInterfaceType type) { 438 void registerInstantiatedType(ResolutionInterfaceType type) {
433 registry.registerInstantiation(type); 439 registry.registerInstantiation(type);
434 } 440 }
435 441
436 @override 442 @override
437 ResolutionDartType resolveTypeFromString(Node node, String typeName) { 443 ResolutionDartType resolveTypeFromString(Node node, String typeName) {
438 return visitor.resolveTypeFromString(node, typeName); 444 return visitor.resolveTypeFromString(node, typeName);
439 } 445 }
440 } 446 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698