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

Unified Diff: pkg/compiler/lib/src/dump_info.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 | « 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 6803b0532857c76525207e88b9159770bd69d9e7..d5314b053e02fa9769517e2deba63bef2ff3a47b 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -115,7 +115,8 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
}
FieldInfo visitFieldElement(FieldElement element, _) {
- TypeMask inferredType = compiler.globalInference.results.typeOf(element);
+ TypeMask inferredType =
+ compiler.globalInference.getGuaranteedTypeOfElement(element);
// If a field has an empty inferred type it is never used.
if (inferredType == null || inferredType.isEmpty) return null;
@@ -256,7 +257,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
signature.forEachParameter((parameter) {
parameters.add(new ParameterInfo(
parameter.name,
- '${compiler.globalInference.results.typeOf(parameter)}',
+ '${compiler.globalInference.getGuaranteedTypeOfElement(parameter)}',
'${parameter.node.type}'));
});
}
@@ -269,7 +270,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
returnType = '${element.type.returnType}';
}
String inferredReturnType =
- '${compiler.globalInference.results.returnTypeOf(element)}';
+ '${compiler.globalInference.getGuaranteedReturnTypeOfElement(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