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

Unified Diff: pkg/compiler/lib/src/common/codegen.dart

Issue 2781483002: Mostly use Entity in InterceptorData (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common_elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/codegen.dart
diff --git a/pkg/compiler/lib/src/common/codegen.dart b/pkg/compiler/lib/src/common/codegen.dart
index dea9ca481a3105c01e6a41f4ba16122d1584cf1d..12c399f9d652ea0669a20e4d3736da23c5cc0c6e 100644
--- a/pkg/compiler/lib/src/common/codegen.dart
+++ b/pkg/compiler/lib/src/common/codegen.dart
@@ -5,7 +5,6 @@
library dart2js.common.codegen;
import '../common.dart';
-import '../constants/values.dart' show ConstantValue;
import '../elements/resolution_types.dart'
show ResolutionDartType, ResolutionInterfaceType;
import '../elements/elements.dart'
@@ -16,6 +15,7 @@ import '../elements/elements.dart'
LocalFunctionElement,
MemberElement,
ResolvedAst;
+import '../elements/entities.dart';
import '../js_backend/backend.dart' show JavaScriptBackend;
import '../universe/use.dart' show ConstantUse, DynamicUse, StaticUse, TypeUse;
import '../universe/world_impact.dart'
@@ -33,8 +33,8 @@ class CodegenImpact extends WorldImpact {
Iterable<String> get constSymbols => const <String>[];
- Iterable<Set<ClassElement>> get specializedGetInterceptors {
- return const <Set<ClassElement>>[];
+ Iterable<Set<ClassEntity>> get specializedGetInterceptors {
+ return const <Set<ClassEntity>>[];
}
bool get usesInterceptor => false;
@@ -46,7 +46,7 @@ class _CodegenImpact extends WorldImpactBuilderImpl implements CodegenImpact {
Setlet<Pair<ResolutionDartType, ResolutionDartType>>
_typeVariableBoundsSubtypeChecks;
Setlet<String> _constSymbols;
- List<Set<ClassElement>> _specializedGetInterceptors;
+ List<Set<ClassEntity>> _specializedGetInterceptors;
bool _usesInterceptor = false;
Setlet<FunctionElement> _asyncMarkers;
@@ -86,17 +86,17 @@ class _CodegenImpact extends WorldImpactBuilderImpl implements CodegenImpact {
return _constSymbols != null ? _constSymbols : const <String>[];
}
- void registerSpecializedGetInterceptor(Set<ClassElement> classes) {
+ void registerSpecializedGetInterceptor(Set<ClassEntity> classes) {
if (_specializedGetInterceptors == null) {
- _specializedGetInterceptors = <Set<ClassElement>>[];
+ _specializedGetInterceptors = <Set<ClassEntity>>[];
}
_specializedGetInterceptors.add(classes);
}
- Iterable<Set<ClassElement>> get specializedGetInterceptors {
+ Iterable<Set<ClassEntity>> get specializedGetInterceptors {
return _specializedGetInterceptors != null
? _specializedGetInterceptors
- : const <Set<ClassElement>>[];
+ : const <Set<ClassEntity>>[];
}
void registerUseInterceptor() {
@@ -165,7 +165,7 @@ class CodegenRegistry {
worldImpact.registerConstSymbol(name);
}
- void registerSpecializedGetInterceptor(Set<ClassElement> classes) {
+ void registerSpecializedGetInterceptor(Set<ClassEntity> classes) {
worldImpact.registerSpecializedGetInterceptor(classes);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698