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

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

Issue 2308983002: Revert "Refactor how we read global-type-inference data from ssa" (Closed)
Patch Set: 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
« no previous file with comments | « tests/compiler/dart2js/arithmetic_simplification_test.dart ('k') | no next file » | 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 6a142cd98baa3d0ec1496a3b7bb29c7e30c251f3..de673f837735c351b4145890976fd022556a566a 100644
--- a/tests/compiler/dart2js/concrete_type_inference_test.dart
+++ b/tests/compiler/dart2js/concrete_type_inference_test.dart
@@ -25,7 +25,7 @@ void checkPrintType(String expression, checkType(compiler, type)) {
var parameter =
printElement.functionSignature.requiredParameters.first;
var type =
- compiler.globalInference.results.typeOf(parameter);
+ compiler.globalInference.getGuaranteedTypeOfElement(parameter);
checkType(compiler, type);
}));
@@ -36,7 +36,7 @@ void checkPrintType(String expression, checkType(compiler, type)) {
var parameter =
printElement.functionSignature.requiredParameters.first;
var type =
- compiler.globalInference.results.typeOf(parameter);
+ compiler.globalInference.getGuaranteedTypeOfElement(parameter);
checkType(compiler, type);
}));
@@ -47,7 +47,7 @@ void checkPrintType(String expression, checkType(compiler, type)) {
var parameter =
printElement.functionSignature.requiredParameters.first;
var type =
- compiler.globalInference.results.typeOf(parameter);
+ compiler.globalInference.getGuaranteedTypeOfElement(parameter);
checkType(compiler, type);
}));
}
@@ -91,13 +91,13 @@ void testOptionalParameters() {
var inference = compiler.globalInference;
Expect.identical(
commonMasks.uint31Type,
- inference.results.typeOf(firstParameter));
+ inference.getGuaranteedTypeOfElement(firstParameter));
Expect.identical(
commonMasks.nullType,
- inference.results.typeOf(secondParameter));
+ inference.getGuaranteedTypeOfElement(secondParameter));
Expect.identical(
commonMasks.nullType,
- inference.results.typeOf(thirdParameter));
+ inference.getGuaranteedTypeOfElement(thirdParameter));
});
}
« no previous file with comments | « tests/compiler/dart2js/arithmetic_simplification_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698