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

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

Issue 2965223002: Change inference element invariants (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/map_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/map_tracer.dart b/pkg/compiler/lib/src/inferrer/map_tracer.dart
index d1a8d0368794b149e9030e3501d08d11dd8d4230..c7ccd3408061eae772e093b640f06e6da8670ee5 100644
--- a/pkg/compiler/lib/src/inferrer/map_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/map_tracer.dart
@@ -4,7 +4,7 @@
library compiler.src.inferrer.map_tracer;
-import '../elements/elements.dart';
+import '../elements/entities.dart';
import '../js_backend/backend.dart' show JavaScriptBackend;
import '../universe/selector.dart' show Selector;
import 'node_tracer.dart';
@@ -66,9 +66,8 @@ class MapTracerVisitor extends TracerVisitor {
visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) {
super.visitStaticCallSiteTypeInformation(info);
- Element called = info.calledElement;
- if (compiler.backend
- .isForeign(inferrer.closedWorld.commonElements, called) &&
+ MemberEntity called = info.calledElement;
+ if (inferrer.closedWorld.commonElements.isForeign(called) &&
called.name == JavaScriptBackend.JS) {
bailout('Used in JS ${info.call}');
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/locals_handler.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698