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

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

Issue 2659883002: Use entities in BackendClasses (Closed)
Patch Set: Updated cf. comments. 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/inferrer/node_tracer.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16c92603663bb771dd97fb129ada819c456fe69e..388ee59d4081532d38a35a55242677ea41a4f814 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -870,7 +870,8 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
TypeInformation handleIntrisifiedSelector(
Selector selector, TypeMask mask, InferrerEngine inferrer) {
ClosedWorld closedWorld = inferrer.closedWorld;
- if (!closedWorld.backendClasses.intImplementation.isResolved) return null;
+ ClassElement intClass = closedWorld.backendClasses.intClass;
+ if (!intClass.isResolved) return null;
if (mask == null) return null;
if (!mask.containsOnlyInt(closedWorld)) {
return null;
@@ -879,8 +880,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
if (!arguments.named.isEmpty) return null;
if (arguments.positional.length > 1) return null;
- ClassElement uint31Implementation =
- closedWorld.backendClasses.uint31Implementation;
+ ClassElement uint31Implementation = closedWorld.backendClasses.uint31Class;
bool isInt(info) => info.type.containsOnlyInt(closedWorld);
bool isEmpty(info) => info.type.isEmpty;
bool isUInt31(info) {
@@ -888,8 +888,8 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
}
bool isPositiveInt(info) {
- return info.type.satisfies(
- closedWorld.backendClasses.positiveIntImplementation, closedWorld);
+ return info.type
+ .satisfies(closedWorld.backendClasses.positiveIntClass, closedWorld);
}
TypeInformation tryLater() => inferrer.types.nonNullEmptyType;
« no previous file with comments | « pkg/compiler/lib/src/inferrer/node_tracer.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698