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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments 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/simple_inferrer_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_test.dart b/tests/compiler/dart2js/simple_inferrer_test.dart
index 295784ad3b085645d259301a5053681883ad78a0..c6f97d509d1f08dd34f45ad6599828347c839842 100644
--- a/tests/compiler/dart2js/simple_inferrer_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_test.dart
@@ -729,7 +729,7 @@ void main() {
asyncTest(() => compiler.run(uri).then((_) {
var commonMasks = compiler.commonMasks;
var typesInferrer = compiler.globalInference.typesInferrer;
- var world = compiler.world;
+ var world = compiler.closedWorld;
checkReturn(String name, type) {
var element = findElement(compiler, name);
@@ -758,7 +758,7 @@ void main() {
checkReturn('returnEmpty1', const TypeMask.nonNullEmpty());
checkReturn('returnEmpty2', const TypeMask.nonNullEmpty());
TypeMask intType = new TypeMask.nonNullSubtype(
- compiler.coreClasses.intClass, compiler.world);
+ compiler.coreClasses.intClass, compiler.closedWorld);
checkReturn('testIsCheck1', intType);
checkReturn('testIsCheck2', intType);
checkReturn('testIsCheck3', intType.nullable());
@@ -791,7 +791,7 @@ void main() {
checkReturn('testIf1', commonMasks.uint31Type.nullable());
checkReturn('testIf2', commonMasks.uint31Type.nullable());
checkReturn('returnAsString', new TypeMask.subtype(
- compiler.coreClasses.stringClass, compiler.world));
+ compiler.coreClasses.stringClass, compiler.closedWorld));
checkReturn('returnIntAsNum', commonMasks.uint31Type);
checkReturn('returnAsTypedef', commonMasks.functionType.nullable());
checkReturn('returnTopLevelGetter', commonMasks.uint31Type);
@@ -799,7 +799,7 @@ void main() {
checkReturn('testLabeledIf', commonMasks.uint31Type.nullable());
checkReturn('testSwitch1', simplify(
commonMasks.intType
- .union(commonMasks.doubleType, compiler.world)
+ .union(commonMasks.doubleType, compiler.closedWorld)
.nullable(),
compiler));
checkReturn('testSwitch2', commonMasks.uint31Type);
« no previous file with comments | « tests/compiler/dart2js/simple_inferrer_closure_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_try_catch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698