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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2363773005: Move closed world reasoning methods from ClassWorld to ClosedWorld. (Closed)
Patch Set: Created 4 years, 3 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/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 3f581775f3e720c88421e661677a0b0531bb2f94..acc0edc13f962e6c8f114194b1719532d32e4ba2 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -58,7 +58,7 @@ import '../universe/world_impact.dart'
WorldImpactVisitor,
StagedWorldImpactBuilder;
import '../util/util.dart';
-import '../world.dart' show ClassWorld;
+import '../world.dart' show ClosedWorld;
import 'backend_helpers.dart';
import 'backend_impact.dart';
import 'backend_serialization.dart' show JavaScriptBackendSerialization;
@@ -983,11 +983,11 @@ class JavaScriptBackend extends Backend {
}
Set<ClassElement> nativeSubclassesOfMixin(ClassElement mixin) {
- ClassWorld classWorld = compiler.closedWorld;
- Iterable<MixinApplicationElement> uses = classWorld.mixinUsesOf(mixin);
+ ClosedWorld closedWorld = compiler.closedWorld;
+ Iterable<MixinApplicationElement> uses = closedWorld.mixinUsesOf(mixin);
Set<ClassElement> result = null;
for (MixinApplicationElement use in uses) {
- classWorld.forEachStrictSubclassOf(use, (ClassElement subclass) {
+ closedWorld.forEachStrictSubclassOf(use, (ClassElement subclass) {
if (isNativeOrExtendsNative(subclass)) {
if (result == null) result = new Set<ClassElement>();
result.add(subclass);

Powered by Google App Engine
This is Rietveld 408576698