Chromium Code Reviews| 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..afb145b9062b8ce869d97e868e5a7c58ec0fa8df 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.noSuchMethodRegistry.otherImpls.contains(e); |
|
floitsch
2015/03/23 21:02:27
Don't just reach into the nsm-registry. Make a met
Harry Terkelsen
2015/03/23 22:31:18
Done.
|
| }); |
| } |