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

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

Issue 2969073002: Add most equivalence tests to js_model/model_test (Closed)
Patch Set: Created 3 years, 5 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: pkg/compiler/lib/src/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 3c4c100a1ba6dd103ab566b7fb0a0deabf9c60b7..7b96e20421ec3b6bfe87ac720891e41c3e7b2f4c 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -414,7 +414,7 @@ abstract class ClosedWorldBase implements ClosedWorld, ClosedWorldRefiner {
final Map<ClassEntity, Set<ClassEntity>> mixinUses;
Map<ClassEntity, List<ClassEntity>> _liveMixinUses;
- final Map<ClassEntity, Set<ClassEntity>> _typesImplementedBySubclasses;
+ final Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses;
// We keep track of subtype and subclass relationships in four
// distinct sets to make class hierarchy analysis faster.
@@ -464,12 +464,11 @@ abstract class ClosedWorldBase implements ClosedWorld, ClosedWorldRefiner {
this.assignedInstanceMembers,
Set<TypedefElement> allTypedefs,
this.mixinUses,
- Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses,
+ this.typesImplementedBySubclasses,
Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes,
Map<ClassEntity, ClassSet> classSets)
: this._implementedClasses = implementedClasses,
this._allTypedefs = allTypedefs,
- this._typesImplementedBySubclasses = typesImplementedBySubclasses,
this._classHierarchyNodes = classHierarchyNodes,
this._classSets = classSets {
_commonMasks = new CommonMasks(this);
@@ -804,7 +803,7 @@ abstract class ClosedWorldBase implements ClosedWorld, ClosedWorldRefiner {
/// Returns `true` if any subclass of [superclass] implements [type].
bool hasAnySubclassThatImplements(ClassEntity superclass, ClassEntity type) {
assert(checkClass(superclass));
- Set<ClassEntity> subclasses = _typesImplementedBySubclasses[superclass];
+ Set<ClassEntity> subclasses = typesImplementedBySubclasses[superclass];
if (subclasses == null) return false;
return subclasses.contains(type);
}

Powered by Google App Engine
This is Rietveld 408576698