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

Unified Diff: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart

Issue 2370833002: Replace ClosedWorld.backend with ClosedWorld.backendClasses (Closed)
Patch Set: Created 4 years, 3 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
Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
index 6519aa9ac218206b6374393834963d176435a641..ddca26254a4baf0e582b5f8586a2d8175fed56b1 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -868,7 +868,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
TypeInformation handleIntrisifiedSelector(
Selector selector, TypeMask mask, TypeGraphInferrerEngine inferrer) {
ClosedWorld closedWorld = inferrer.closedWorld;
- if (!closedWorld.backend.intImplementation.isResolved) return null;
+ if (!closedWorld.backendClasses.intImplementation.isResolved) return null;
if (mask == null) return null;
if (!mask.containsOnlyInt(closedWorld)) {
return null;
@@ -878,7 +878,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
if (arguments.positional.length > 1) return null;
ClassElement uint31Implementation =
- closedWorld.backend.uint31Implementation;
+ closedWorld.backendClasses.uint31Implementation;
bool isInt(info) => info.type.containsOnlyInt(closedWorld);
bool isEmpty(info) => info.type.isEmpty;
bool isUInt31(info) {
@@ -887,7 +887,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
bool isPositiveInt(info) {
return info.type.satisfies(
- closedWorld.backend.positiveIntImplementation, closedWorld);
+ closedWorld.backendClasses.positiveIntImplementation, closedWorld);
}
TypeInformation tryLater() => inferrer.types.nonNullEmptyType;

Powered by Google App Engine
This is Rietveld 408576698