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

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

Issue 2585223002: Access ConstantSystem through 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
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 517c091bf278ff3b63980f0e3e167ba33d5e63e8..48a7d983c80e0f537fc2f453aa2a4c485cc2c9d7 100644
--- a/pkg/compiler/lib/src/ssa/type_builder.dart
+++ b/pkg/compiler/lib/src/ssa/type_builder.dart
@@ -72,7 +72,7 @@ class TypeBuilder {
{SourceInformation sourceInformation}) {
assert(assertTypeInContext(type));
if (type is MethodTypeVariableType) {
- return builder.graph.addConstantNull(builder.compiler);
+ return builder.graph.addConstantNull(builder.closedWorld);
}
bool isClosure = member.enclosingElement.isClosure;
if (isClosure) {
@@ -177,7 +177,7 @@ class TypeBuilder {
argument = argument.unaliased;
if (argument.treatAsDynamic) {
// Represent [dynamic] as [null].
- return builder.graph.addConstantNull(builder.compiler);
+ return builder.graph.addConstantNull(builder.closedWorld);
}
if (argument.isTypeVariable) {

Powered by Google App Engine
This is Rietveld 408576698