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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.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
« no previous file with comments | « no previous file | tests/language/no_such_method_empty_selector_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (revision 26305)
+++ sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (working copy)
@@ -2818,6 +2818,11 @@
TypeMask mask = selector.mask;
if (mask == null) {
mask = new TypeMask.subclass(compiler.objectClass.rawType);
+ } else if (mask.isEmpty && !mask.isNullable) {
ahe 2013/08/20 08:00:33 I'm a little concerned about this. Perhaps it is j
ngeoffray 2013/08/20 08:03:48 The bug is not necessarily related to type inferen
ahe 2013/08/20 08:11:13 I don't understand why it would be an optimization
ngeoffray 2013/08/20 08:24:03 Why does it have to be bogus? There's an optimizat
ahe 2013/08/20 08:31:44 Your
pavelj 2013/08/20 14:51:44 Peter, that version was not using mirrors. On 201
+ // We know a non-null empty mask cannot happen at runtime.
+ // We may have those selectors in the set of seen selectors
+ // if the backend did not optimize them.
+ continue;
}
// If the receiver is guaranteed to have a member that
« no previous file with comments | « no previous file | tests/language/no_such_method_empty_selector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698