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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/universe.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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/universe/universe.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/universe/universe.dart (revision 29416)
+++ sdk/lib/_internal/compiler/implementation/universe/universe.dart (working copy)
@@ -595,6 +595,10 @@
return 'Selector($kind, $name, '
'arity=$argumentCount$named$type)';
}
+
+ Selector extendIfReachesAll(Compiler compiler) {
+ return new TypedSelector(compiler.typesTask.dynamicType, this);
+ }
}
class TypedSelector extends Selector {
@@ -656,4 +660,12 @@
if (!mask.canHit(element, this, compiler)) return false;
return appliesUntyped(element, compiler);
}
+
+ Selector extendIfReachesAll(Compiler compiler) {
+ bool canReachAll = compiler.enabledInvokeOn
+ && mask.needsNoSuchMethodHandling(this, compiler);
+ return canReachAll
+ ? new TypedSelector(compiler.typesTask.dynamicType, this)
+ : this;
+ }
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698