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

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

Issue 2265473004: Introduce "CommonElements" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cl Created 4 years, 4 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/closure_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_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
index d610c5468b0d8787350fb58f91928310afbfa8ad..e62d288942844aee4d61b07ec2bfc051c200b1a4 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
@@ -367,9 +367,10 @@ class TypeInformationSystem extends TypeSystem<TypeInformation> {
TypeInformation allocateList(
TypeInformation type, ast.Node node, Element enclosing,
[TypeInformation elementType, int length]) {
- bool isTypedArray = compiler.typedDataClass != null &&
- classWorld.isInstantiated(compiler.typedDataClass) &&
- type.type.satisfies(compiler.typedDataClass, classWorld);
+ ClassElement typedDataClass = compiler.commonElements.typedDataClass;
+ bool isTypedArray = typedDataClass != null &&
+ classWorld.isInstantiated(typedDataClass) &&
+ type.type.satisfies(typedDataClass, classWorld);
bool isConst = (type.type == compiler.typesTask.constListType);
bool isFixed = (type.type == compiler.typesTask.fixedListType) ||
isConst ||
« no previous file with comments | « pkg/compiler/lib/src/inferrer/closure_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