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

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

Issue 2863073003: Access NativeData only through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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/inferrer_engine.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 e7460c9e52be36dd888d816b738d796ee2b577bf..1f41e68293740c21ea819791d2972966ecba1889 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -479,8 +479,8 @@ class MemberTypeInformation extends ElementTypeInformation
if (element.isField) {
FieldElement field = element;
return inferrer
- .typeOfNativeBehavior(
- inferrer.backend.nativeData.getNativeFieldLoadBehavior(field))
+ .typeOfNativeBehavior(inferrer.closedWorld.nativeData
+ .getNativeFieldLoadBehavior(field))
.type;
} else {
assert(element.isFunction ||
@@ -493,7 +493,7 @@ class MemberTypeInformation extends ElementTypeInformation
return safeType(inferrer);
} else {
return inferrer
- .typeOfNativeBehavior(inferrer.backend.nativeData
+ .typeOfNativeBehavior(inferrer.closedWorld.nativeData
.getNativeMethodBehavior(methodElement))
.type;
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.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