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

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

Issue 2577423002: Further reduce use of Compiler.closedWorld. (Closed)
Patch Set: Created 4 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: tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart b/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
index f20912a288e550ed800ff4e5350feab697e4e370..430f46422151c444d8236dfddc8d0a4065693187 100644
--- a/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart
@@ -38,6 +38,7 @@ void main() {
var compiler = compilerFor(TEST, uri);
asyncTest(() => compiler.run(uri).then((_) {
var typesInferrer = compiler.globalInference.typesInferrerInternal;
+ var closedWorld = typesInferrer.closedWorld;
checkReturn(String name, type) {
var element = findElement(compiler, name);
@@ -47,10 +48,10 @@ void main() {
name);
}
- checkReturn('method1', compiler.closedWorld.commonMasks.uint31Type);
- checkReturn('returnInt1', compiler.closedWorld.commonMasks.uint31Type);
+ checkReturn('method1', closedWorld.commonMasks.uint31Type);
+ checkReturn('returnInt1', closedWorld.commonMasks.uint31Type);
- checkReturn('method2', compiler.closedWorld.commonMasks.uint31Type);
- checkReturn('returnInt2', compiler.closedWorld.commonMasks.uint31Type);
+ checkReturn('method2', closedWorld.commonMasks.uint31Type);
+ checkReturn('returnInt2', closedWorld.commonMasks.uint31Type);
}));
}

Powered by Google App Engine
This is Rietveld 408576698