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

Unified Diff: pkg/compiler/lib/src/types/types.dart

Issue 1408043002: Move native and js interop properties from the element model to the JS backend (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/ssa/optimize.dart ('k') | pkg/compiler/lib/src/universe/universe.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/types/types.dart
diff --git a/pkg/compiler/lib/src/types/types.dart b/pkg/compiler/lib/src/types/types.dart
index 9d91f99ff7380b22aa009e8a15427bd78c2c3e1a..733d119f874ec197978646b2cd78667b0d08c08e 100644
--- a/pkg/compiler/lib/src/types/types.dart
+++ b/pkg/compiler/lib/src/types/types.dart
@@ -287,7 +287,7 @@ class TypesTask extends CompilerTask {
TypeMask getGuaranteedTypeOfElement(Element element) {
return measure(() {
// TODO(24489): trust some JsInterop types.
- if (element.isJsInterop) {
+ if (compiler.backend.isJsInterop(element)) {
return dynamicType;
}
TypeMask guaranteedType = typesInferrer.getTypeOfElement(element);
@@ -298,7 +298,7 @@ class TypesTask extends CompilerTask {
TypeMask getGuaranteedReturnTypeOfElement(Element element) {
return measure(() {
// TODO(24489): trust some JsInterop types.
- if (element.isJsInterop) {
+ if (compiler.backend.isJsInterop(element)) {
return dynamicType;
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/optimize.dart ('k') | pkg/compiler/lib/src/universe/universe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698