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

Unified Diff: pkg/compiler/lib/src/js_emitter/type_test_registry.dart

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased Created 3 years, 11 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 | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | pkg/compiler/lib/src/kernel/error.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/type_test_registry.dart
diff --git a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
index 040a4ebcb4f890083d3d14b7e43f7c07255f3b5e..9efbbeb1b66a839d7c48cae6a76a1e58ca3c132d 100644
--- a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
+++ b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
@@ -17,7 +17,7 @@ class TypeTestRegistry {
* The set of function types that checked, both explicity through tests of
* typedefs and implicitly through type annotations in checked mode.
*/
- Set<FunctionType> checkedFunctionTypes;
+ Set<ResolutionFunctionType> checkedFunctionTypes;
/// Initially contains all classes that need RTI. After
/// [computeNeededClasses]
@@ -29,8 +29,8 @@ class TypeTestRegistry {
Iterable<ClassElement> get classesUsingTypeVariableTests {
if (cachedClassesUsingTypeVariableTests == null) {
cachedClassesUsingTypeVariableTests = compiler.codegenWorld.isChecks
- .where((DartType t) => t is TypeVariableType)
- .map((TypeVariableType v) => v.element.enclosingClass)
+ .where((ResolutionDartType t) => t is ResolutionTypeVariableType)
+ .map((ResolutionTypeVariableType v) => v.element.enclosingClass)
.toList();
}
return cachedClassesUsingTypeVariableTests;
@@ -92,7 +92,7 @@ class TypeTestRegistry {
// 3. Add classes that contain checked generic function types. These are
// needed to store the signature encoding.
- for (FunctionType type in checkedFunctionTypes) {
+ for (ResolutionFunctionType type in checkedFunctionTypes) {
ClassElement contextClass = Types.getClassContext(type);
if (contextClass != null) {
rtiNeededClasses.add(contextClass);
@@ -128,7 +128,7 @@ class TypeTestRegistry {
backend.generatedCode.keys.where((element) {
return canBeReflectedAsFunction(element) && canBeReified(element);
}).forEach((FunctionElement function) {
- DartType type = function.type;
+ ResolutionDartType type = function.type;
for (ClassElement cls in backend.rti.getReferencedClasses(type)) {
while (cls != null) {
rtiNeededClasses.add(cls);
@@ -147,11 +147,11 @@ class TypeTestRegistry {
compiler.codegenWorld, classesUsingTypeVariableTests);
checkedClasses = new Set<ClassElement>();
- checkedFunctionTypes = new Set<FunctionType>();
- compiler.codegenWorld.isChecks.forEach((DartType t) {
- if (t is InterfaceType) {
+ checkedFunctionTypes = new Set<ResolutionFunctionType>();
+ compiler.codegenWorld.isChecks.forEach((ResolutionDartType t) {
+ if (t is ResolutionInterfaceType) {
checkedClasses.add(t.element);
- } else if (t is FunctionType) {
+ } else if (t is ResolutionFunctionType) {
checkedFunctionTypes.add(t);
}
});
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | pkg/compiler/lib/src/kernel/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698