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

Unified Diff: pkg/compiler/lib/src/dump_info.dart

Issue 2305623004: Refactor how we read global-type-inference data from ssa (Closed)
Patch Set: fix copy/paste typo. 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 | « no previous file | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index d5314b053e02fa9769517e2deba63bef2ff3a47b..6803b0532857c76525207e88b9159770bd69d9e7 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -115,8 +115,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
}
FieldInfo visitFieldElement(FieldElement element, _) {
- TypeMask inferredType =
- compiler.globalInference.getGuaranteedTypeOfElement(element);
+ TypeMask inferredType = compiler.globalInference.results.typeOf(element);
// If a field has an empty inferred type it is never used.
if (inferredType == null || inferredType.isEmpty) return null;
@@ -257,7 +256,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
signature.forEachParameter((parameter) {
parameters.add(new ParameterInfo(
parameter.name,
- '${compiler.globalInference.getGuaranteedTypeOfElement(parameter)}',
+ '${compiler.globalInference.results.typeOf(parameter)}',
'${parameter.node.type}'));
});
}
@@ -270,7 +269,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
returnType = '${element.type.returnType}';
}
String inferredReturnType =
- '${compiler.globalInference.getGuaranteedReturnTypeOfElement(element)}';
+ '${compiler.globalInference.results.returnTypeOf(element)}';
String sideEffects = '${compiler.world.getSideEffectsOfElement(element)}';
int inlinedCount = compiler.dumpInfoTask.inlineCount[element];
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698