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

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

Issue 2813093002: Remove BackendClasses and JavaScriptBackendClasses. (Closed)
Patch Set: . Created 3 years, 8 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 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;
« 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