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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/function_set.dart

Issue 23225004: Fix a bug where we would emit a noSuchMethod handler in the Object class for Object methods because… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/universe/function_set.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/universe/function_set.dart (revision 26305)
+++ sdk/lib/_internal/compiler/implementation/universe/function_set.dart (working copy)
@@ -164,7 +164,8 @@
// If we cannot ensure a method will be found at runtime, we also
// add [noSuchMethod] implementations that apply to [mask] as
// potential targets.
- if (noSuchMethods != null && !mask.willHit(selector, compiler)) {
+ if (noSuchMethods != null
+ && mask.needsNoSuchMethodHandling(selector, compiler)) {
FunctionSetQuery noSuchMethodQuery = noSuchMethods.query(
new TypedSelector(mask, compiler.noSuchMethodSelector),
compiler,
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart ('k') | tests/language/abstract_exact_selector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698