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

Unified Diff: tests/compiler/dart2js/map_tracer_test.dart

Issue 2366363002: Move remaining functionality 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: tests/compiler/dart2js/map_tracer_test.dart
diff --git a/tests/compiler/dart2js/map_tracer_test.dart b/tests/compiler/dart2js/map_tracer_test.dart
index 6c4af67e85e99525e2acc0b967f0085430c2699b..43997984726baacac1ab087a9f00b8605d8de4be 100644
--- a/tests/compiler/dart2js/map_tracer_test.dart
+++ b/tests/compiler/dart2js/map_tracer_test.dart
@@ -211,7 +211,7 @@ void doTest(String allocation, [String keyElement, String valueElement]) {
Uri uri = new Uri(scheme: 'source');
var compiler = compilerFor(generateTest(allocation), uri,
expectedErrors: 0, expectedWarnings: 1);
- var classWorld = compiler.openWorld.closeWorld();
+ var closedWorld = compiler.openWorld.closeWorld();
asyncTest(() => compiler.run(uri).then((_) {
var keyType, valueType;
var commonMasks = compiler.commonMasks;
@@ -238,9 +238,9 @@ void doTest(String allocation, [String keyElement, String valueElement]) {
}
K(TypeMask other) =>
- simplify(keyType.union(other, classWorld), compiler);
+ simplify(keyType.union(other, closedWorld), compiler);
V(TypeMask other) =>
- simplify(valueType.union(other, classWorld), compiler).nullable();
+ simplify(valueType.union(other, closedWorld), compiler).nullable();
checkType('mapInField', K(aKeyType), V(commonMasks.numType));
checkType('mapPassedToMethod', K(aKeyType), V(commonMasks.numType));

Powered by Google App Engine
This is Rietveld 408576698