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

Unified Diff: pkg/compiler/lib/src/ssa/ssa_tracer.dart

Issue 2722753002: Remove HRuntimeType implementation (Closed)
Patch Set: Created 3 years, 10 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: pkg/compiler/lib/src/ssa/ssa_tracer.dart
diff --git a/pkg/compiler/lib/src/ssa/ssa_tracer.dart b/pkg/compiler/lib/src/ssa/ssa_tracer.dart
index 8e7dcbb6f78593188ca9e4020370f7c42f390e81..d4ac68cac00649ef4f496271021770fc36e09780 100644
--- a/pkg/compiler/lib/src/ssa/ssa_tracer.dart
+++ b/pkg/compiler/lib/src/ssa/ssa_tracer.dart
@@ -493,11 +493,7 @@ class HInstructionStringifier implements HVisitor<String> {
String visitTypeConversion(HTypeConversion node) {
String checkedInput = temporaryId(node.checkedInput);
String rest;
- if (node.usesMethodOnType) {
- assert(node.inputs.length == 2);
- assert(identical(node.checkedInput, node.inputs.last));
- rest = " ${temporaryId(node.inputs.first)}";
- } else if (node.inputs.length == 2) {
+ if (node.inputs.length == 2) {
rest = " ${temporaryId(node.inputs.last)}";
} else {
assert(node.inputs.length == 1);
@@ -536,28 +532,6 @@ class HInstructionStringifier implements HVisitor<String> {
" ($inputs)";
}
- String visitReadTypeVariable(HReadTypeVariable node) {
- var inputs = node.inputs.map(temporaryId).join(', ');
- return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver} $inputs";
- }
-
- String visitFunctionType(HFunctionType node) {
- var inputs = node.inputs.map(temporaryId).join(', ');
- return "FunctionType: ${node.dartType} $inputs";
- }
-
- String visitVoidType(HVoidType node) {
- return "VoidType";
- }
-
- String visitInterfaceType(HInterfaceType node) {
- return "InterfaceType: ${node.dartType}";
- }
-
- String visitDynamicType(HDynamicType node) {
- return "DynamicType";
- }
-
String visitAwait(HAwait node) {
return "Await: ${temporaryId(node.inputs[0])}";
}

Powered by Google App Engine
This is Rietveld 408576698