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

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

Issue 2278213003: Rename the global inference task and reduce it's API surface by introducing the (Closed)
Patch Set: cl comments Created 4 years, 4 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_try_catch_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_try_catch_test.dart b/tests/compiler/dart2js/simple_inferrer_try_catch_test.dart
index 82ec5ed0e9dcad9a3b362aee4e8521dcb51ea7c1..fb8ea18dfc5bc712ef215e971f9a024bd1761f8f 100644
--- a/tests/compiler/dart2js/simple_inferrer_try_catch_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_try_catch_test.dart
@@ -169,8 +169,8 @@ void main() {
Uri uri = new Uri(scheme: 'source');
var compiler = compilerFor(TEST, uri);
asyncTest(() => compiler.run(uri).then((_) {
- var typesTask = compiler.typesTask;
- var typesInferrer = typesTask.typesInferrer;
+ var commonMasks = compiler.commonMasks;
+ var typesInferrer = compiler.globalInference.typesInferrer;
checkReturn(String name, type) {
var element = findElement(compiler, name);
@@ -178,11 +178,11 @@ void main() {
simplify(typesInferrer.getReturnTypeOfElement(element), compiler));
}
- checkReturn('returnInt1', typesTask.uint31Type);
- checkReturn('returnInt2', typesTask.uint31Type);
- checkReturn('returnInt3', typesTask.uint31Type);
- checkReturn('returnInt4', typesTask.uint31Type);
- checkReturn('returnInt5', typesTask.uint31Type);
+ checkReturn('returnInt1', commonMasks.uint31Type);
+ checkReturn('returnInt2', commonMasks.uint31Type);
+ checkReturn('returnInt3', commonMasks.uint31Type);
+ checkReturn('returnInt4', commonMasks.uint31Type);
+ checkReturn('returnInt5', commonMasks.uint31Type);
checkReturn('returnInt6', new TypeMask.nonNullSubtype(
compiler.coreClasses.intClass, compiler.world));
@@ -194,6 +194,6 @@ void main() {
checkReturn('returnDyn3', subclassOfInterceptor);
checkReturn('returnDyn4', subclassOfInterceptor);
checkReturn('returnDyn5', subclassOfInterceptor);
- checkReturn('returnDyn6', typesTask.dynamicType);
+ checkReturn('returnDyn6', commonMasks.dynamicType);
}));
}
« no previous file with comments | « tests/compiler/dart2js/simple_inferrer_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698