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

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

Issue 1020853007: Don't bailout of type inference for simple NSM implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 7b673d028cdb8f6ab340e9e680cdda66cf7350a4..b87a8926bfad57eeb64b8c3348f49eb8d9886b2c 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -760,11 +760,12 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
}
}
- bool get targetsIncludeNoSuchMethod {
+ bool targetsIncludeComplexNoSuchMethod(TypeGraphInferrerEngine inferrer) {
return targets.any((Element e) {
return e is FunctionElement &&
e.isInstanceMember &&
- e.name == Compiler.NO_SUCH_METHOD;
+ e.name == Compiler.NO_SUCH_METHOD &&
+ inferrer.backend.isComplexNoSuchMethod(e);
});
}

Powered by Google App Engine
This is Rietveld 408576698