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

Unified Diff: pkg/compiler/lib/src/world.dart

Issue 1528953002: Tweaks to improve performance of type-inference. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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: pkg/compiler/lib/src/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 8fd7e6c9724f481bbbd36bf24bf96d83c1769c63..2e660efecbce34f43dd50a11cd824434b1267883 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -310,6 +310,7 @@ class World implements ClassWorld {
/// Returns `true` if all directly instantiated classes that implement [cls]
/// extend it.
bool hasOnlySubclasses(ClassElement cls) {
Johnni Winther 2015/12/16 09:07:08 Add a TODO for me to move this to [ClassSet].
Siggi Cherem (dart-lang) 2015/12/17 01:02:57 Done.
+ if (cls == objectClass) return true;
Iterable<ClassElement> subtypes = strictSubtypesOf(cls);
if (subtypes == null) return true;
Iterable<ClassElement> subclasses = strictSubclassesOf(cls);

Powered by Google App Engine
This is Rietveld 408576698