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

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

Issue 2488353004: Remove Compiler access from ResolutionEnqueuer (Closed)
Patch Set: Updated cf. comments. Created 4 years, 1 month 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
« no previous file with comments | « tests/compiler/dart2js/compiler_helper.dart ('k') | tests/compiler/dart2js/container_mask_equal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/concrete_type_inference_test.dart
diff --git a/tests/compiler/dart2js/concrete_type_inference_test.dart b/tests/compiler/dart2js/concrete_type_inference_test.dart
index e3833ad61c39827fcd16fc5898222a45b2f30ee7..fca12a95722c90fa643a76604f2bdc3955c125c4 100644
--- a/tests/compiler/dart2js/concrete_type_inference_test.dart
+++ b/tests/compiler/dart2js/concrete_type_inference_test.dart
@@ -44,23 +44,23 @@ void checkPrintType(String expression, checkType(compiler, type)) {
void testBasicTypes() {
checkPrintType('true', (compiler, type) {
if (type.isForwarding) type = type.forwardTo;
- Expect.identical(compiler.commonMasks.boolType, type);
+ Expect.identical(compiler.closedWorld.commonMasks.boolType, type);
});
checkPrintType('1.5', (compiler, type) {
- Expect.identical(compiler.commonMasks.doubleType, type);
+ Expect.identical(compiler.closedWorld.commonMasks.doubleType, type);
});
checkPrintType('1', (compiler, type) {
- Expect.identical(compiler.commonMasks.uint31Type, type);
+ Expect.identical(compiler.closedWorld.commonMasks.uint31Type, type);
});
checkPrintType('[]', (compiler, type) {
if (type.isForwarding) type = type.forwardTo;
- Expect.identical(compiler.commonMasks.growableListType, type);
+ Expect.identical(compiler.closedWorld.commonMasks.growableListType, type);
});
checkPrintType('null', (compiler, type) {
- Expect.identical(compiler.commonMasks.nullType, type);
+ Expect.identical(compiler.closedWorld.commonMasks.nullType, type);
});
checkPrintType('"foo"', (compiler, type) {
- Expect.isTrue(compiler.commonMasks.stringType
+ Expect.isTrue(compiler.closedWorld.commonMasks.stringType
.containsOnlyString(compiler.closedWorld));
});
}
@@ -71,7 +71,7 @@ void testOptionalParameters() {
var firstParameter = fiskElement.functionSignature.requiredParameters[0];
var secondParameter = fiskElement.functionSignature.optionalParameters[0];
var thirdParameter = fiskElement.functionSignature.optionalParameters[1];
- var commonMasks = compiler.commonMasks;
+ var commonMasks = compiler.closedWorld.commonMasks;
var inference = compiler.globalInference;
Expect.identical(
commonMasks.uint31Type, inference.results.typeOf(firstParameter));
« no previous file with comments | « tests/compiler/dart2js/compiler_helper.dart ('k') | tests/compiler/dart2js/container_mask_equal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698