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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 49813002: Infer types for parameters even in the presence of InvocationMirror.delegate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 29416)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -3367,12 +3367,13 @@
ClassElement cls = currentNonClosureClass;
Element element = cls.lookupSuperMember(Compiler.NO_SUCH_METHOD);
- if (element.enclosingElement.declaration != compiler.objectClass) {
+ if (compiler.enabledInvokeOn
+ && element.enclosingElement.declaration != compiler.objectClass) {
// Register the call as dynamic if [noSuchMethod] on the super
// class is _not_ the default implementation from [Object], in
// case the [noSuchMethod] implementation calls
// [JSInvocationMirror._invokeOn].
- compiler.enqueuer.codegen.registerSelectorUse(selector);
+ compiler.enqueuer.codegen.registerSelectorUse(selector.asUntyped);
}
String publicName = name;
if (selector.isSetter()) publicName += '=';

Powered by Google App Engine
This is Rietveld 408576698