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 5ecd80392f1b7042669e33bc8cab1a68e8a382e1..0c8c630e229651aacd8d98cc3bb15b497138c107 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -874,7 +874,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation { |
TypeInformation handleIntrisifiedSelector( |
Selector selector, TypeMask mask, InferrerEngine inferrer) { |
ClosedWorld closedWorld = inferrer.closedWorld; |
- ClassElement intClass = closedWorld.backendClasses.intClass; |
+ ClassElement intClass = closedWorld.commonElements.jsIntClass; |
if (!intClass.isResolved) return null; |
if (mask == null) return null; |
if (!mask.containsOnlyInt(closedWorld)) { |
@@ -884,7 +884,8 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation { |
if (!arguments.named.isEmpty) return null; |
if (arguments.positional.length > 1) return null; |
- ClassElement uint31Implementation = closedWorld.backendClasses.uint31Class; |
+ ClassElement uint31Implementation = |
+ closedWorld.commonElements.jsUInt31Class; |
bool isInt(info) => info.type.containsOnlyInt(closedWorld); |
bool isEmpty(info) => info.type.isEmpty; |
bool isUInt31(info) { |
@@ -892,8 +893,8 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation { |
} |
bool isPositiveInt(info) { |
- return info.type |
- .satisfies(closedWorld.backendClasses.positiveIntClass, closedWorld); |
+ return info.type.satisfies( |
+ closedWorld.commonElements.jsPositiveIntClass, closedWorld); |
} |
TypeInformation tryLater() => inferrer.types.nonNullEmptyType; |