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

Unified Diff: tests/compiler/dart2js/call_site_simple_type_inferer_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
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/closure_tracer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
diff --git a/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart b/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
index 123ae7eeb9c07166cc30e9704bd5d10440404fc1..0bb8f37787423aae5569d3f87b1989a9fa5e74a2 100644
--- a/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
+++ b/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
@@ -219,7 +219,7 @@ void doTest(String test, bool enableInlining, Function f) {
var expectedTypes = f(compiler);
var signature = element.functionSignature;
int index = 0;
- var inferrer = compiler.typesTask.typesInferrer;
+ var inferrer = compiler.globalInference.typesInferrer;
signature.forEachParameter((Element element) {
Expect.equals(expectedTypes[index++],
simplify(inferrer.getTypeOfElement(element), compiler),
@@ -239,47 +239,47 @@ subclassOfInterceptor(compiler) {
}
void test() {
- runTest(TEST_1, (compiler) => [compiler.typesTask.stringType]);
- runTest(TEST_2, (compiler) => [compiler.typesTask.uint31Type]);
- runTest(TEST_3, (compiler) => [compiler.typesTask.intType]);
- runTest(TEST_4, (compiler) => [compiler.typesTask.numType]);
- runTest(TEST_5, (compiler) => [compiler.typesTask.numType]);
- runTest(TEST_6, (compiler) => [compiler.typesTask.numType]);
+ runTest(TEST_1, (compiler) => [compiler.commonMasks.stringType]);
+ runTest(TEST_2, (compiler) => [compiler.commonMasks.uint31Type]);
+ runTest(TEST_3, (compiler) => [compiler.commonMasks.intType]);
+ runTest(TEST_4, (compiler) => [compiler.commonMasks.numType]);
+ runTest(TEST_5, (compiler) => [compiler.commonMasks.numType]);
+ runTest(TEST_6, (compiler) => [compiler.commonMasks.numType]);
runTest(TEST_7a, (compiler) => [subclassOfInterceptor(compiler)]);
runTest(TEST_7b,
- (compiler) => [compiler.typesTask.dynamicType.nonNullable()]);
-
- runTest(TEST_8, (compiler) => [compiler.typesTask.uint31Type,
- subclassOfInterceptor(compiler),
- compiler.typesTask.dynamicType.nonNullable()]);
- runTest(TEST_9, (compiler) => [compiler.typesTask.uint31Type,
- compiler.typesTask.uint31Type]);
- runTest(TEST_10, (compiler) => [compiler.typesTask.uint31Type,
- compiler.typesTask.uint31Type]);
+ (compiler) => [compiler.commonMasks.dynamicType.nonNullable()]);
+
+ runTest(TEST_8, (compiler) => [compiler.commonMasks.uint31Type,
+ subclassOfInterceptor(compiler),
+ compiler.commonMasks.dynamicType.nonNullable()]);
+ runTest(TEST_9, (compiler) => [compiler.commonMasks.uint31Type,
+ compiler.commonMasks.uint31Type]);
+ runTest(TEST_10, (compiler) => [compiler.commonMasks.uint31Type,
+ compiler.commonMasks.uint31Type]);
runTest(TEST_11, (compiler) => [subclassOfInterceptor(compiler),
- subclassOfInterceptor(compiler)]);
+ subclassOfInterceptor(compiler)]);
- runTest(TEST_12, (compiler) => [compiler.typesTask.stringType,
- compiler.typesTask.uint31Type]);
+ runTest(TEST_12, (compiler) => [compiler.commonMasks.stringType,
+ compiler.commonMasks.uint31Type]);
- runTest(TEST_13, (compiler) => [compiler.typesTask.numType]);
+ runTest(TEST_13, (compiler) => [compiler.commonMasks.numType]);
- runTest(TEST_14, (compiler) => [compiler.typesTask.uint31Type,
- compiler.typesTask.stringType]);
+ runTest(TEST_14, (compiler) => [compiler.commonMasks.uint31Type,
+ compiler.commonMasks.stringType]);
- runTest(TEST_15, (compiler) => [compiler.typesTask.stringType,
- compiler.typesTask.boolType]);
+ runTest(TEST_15, (compiler) => [compiler.commonMasks.stringType,
+ compiler.commonMasks.boolType]);
- runTest(TEST_16, (compiler) => [compiler.typesTask.uint31Type,
- compiler.typesTask.uint31Type,
- compiler.typesTask.stringType]);
+ runTest(TEST_16, (compiler) => [compiler.commonMasks.uint31Type,
+ compiler.commonMasks.uint31Type,
+ compiler.commonMasks.stringType]);
- runTest(TEST_17, (compiler) => [compiler.typesTask.uint31Type,
- compiler.typesTask.boolType,
- compiler.typesTask.doubleType]);
+ runTest(TEST_17, (compiler) => [compiler.commonMasks.uint31Type,
+ compiler.commonMasks.boolType,
+ compiler.commonMasks.doubleType]);
runTest(TEST_18, (compiler) => [subclassOfInterceptor(compiler),
- subclassOfInterceptor(compiler)]);
+ subclassOfInterceptor(compiler)]);
}
void main() {
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/closure_tracer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698