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

Unified Diff: pkg/compiler/lib/src/ssa/type_builder.dart

Issue 2563443007: Reduce use of Compiler.closedWorld (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa_tracer.dart ('k') | pkg/compiler/lib/src/ssa/types_propagation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/type_builder.dart
diff --git a/pkg/compiler/lib/src/ssa/type_builder.dart b/pkg/compiler/lib/src/ssa/type_builder.dart
index 605678bf87046c6e5dfb45e6518843d8f4b449ae..c04d4159e04c3174378ff20e4c48a8336a4dcf83 100644
--- a/pkg/compiler/lib/src/ssa/type_builder.dart
+++ b/pkg/compiler/lib/src/ssa/type_builder.dart
@@ -30,7 +30,7 @@ class TypeBuilder {
if (type.isObject) return original;
// The type element is either a class or the void element.
Element element = type.element;
- TypeMask mask = new TypeMask.subtype(element, builder.compiler.closedWorld);
+ TypeMask mask = new TypeMask.subtype(element, builder.closedWorld);
return new HTypeKnown.pinned(mask, original);
}
@@ -133,9 +133,9 @@ class TypeBuilder {
assert(member.isInstanceMember);
assert(variable is! MethodTypeVariableType);
HInstruction target = builder.localsHandler.readThis();
- builder.push(
- new HTypeInfoReadVariable(variable, target, builder.backend.dynamicType)
- ..sourceInformation = sourceInformation);
+ builder.push(new HTypeInfoReadVariable(
+ variable, target, builder.commonMasks.dynamicType)
+ ..sourceInformation = sourceInformation);
return builder.pop();
}
@@ -154,7 +154,7 @@ class TypeBuilder {
TypeInfoExpressionKind.INSTANCE,
interface.element.thisType,
inputs,
- builder.backend.dynamicType);
+ builder.commonMasks.dynamicType);
return representation;
}
@@ -195,7 +195,7 @@ class TypeBuilder {
TypeInfoExpressionKind.COMPLETE,
argument,
inputs,
- builder.backend.dynamicType)..sourceInformation = sourceInformation;
+ builder.commonMasks.dynamicType)..sourceInformation = sourceInformation;
builder.add(result);
return result;
}
@@ -246,7 +246,7 @@ class TypeBuilder {
} else if (type.isFunctionType) {
return builder.buildFunctionTypeConversion(original, type, kind);
} else {
- return original.convertType(builder.compiler, type, kind);
+ return original.convertType(builder.closedWorld, type, kind);
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa_tracer.dart ('k') | pkg/compiler/lib/src/ssa/types_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698