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

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

Issue 23353002: Fix receiver refining optimization in the presence of null: any Object method can be called on the … (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 26345)
+++ sdk/lib/_internal/compiler/implementation/universe/function_set.dart (working copy)
@@ -220,6 +220,9 @@
: [cls];
})
.map((cls) {
+ if (compiler.backend.isNullImplementation(cls)) {
+ return const TypeMask.empty();
+ }
return compiler.world.hasSubclasses(cls)
? new TypeMask.nonNullSubclass(cls.rawType)
: new TypeMask.nonNullExact(cls.rawType);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/type_mask.dart ('k') | sdk/lib/_internal/lib/interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698