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

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

Issue 2045223002: Compute and cache element NativeBehavior during resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Temporarily skip compilation subtest Created 4 years, 6 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
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 ea9e8936c93e46883fcfed13a49ae9505fbab361..3b0127af347c40a4a9a650b0b8ab1f23cce9b190 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -473,7 +473,7 @@ class MemberTypeInformation extends ElementTypeInformation
if (element.isField) {
return inferrer
.typeOfNativeBehavior(
- native.NativeBehavior.ofFieldLoad(element, inferrer.compiler))
+ inferrer.backend.getNativeFieldLoadBehavior(element))
.type;
} else {
assert(element.isFunction ||
@@ -487,7 +487,7 @@ class MemberTypeInformation extends ElementTypeInformation
} else {
return inferrer
.typeOfNativeBehavior(
- native.NativeBehavior.ofMethod(element, inferrer.compiler))
+ inferrer.backend.getNativeMethodBehavior(element))
.type;
}
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/simple_types_inferrer.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