[DataFlowIR] Better debug output
This commit is contained in:
+3
-3
@@ -307,7 +307,7 @@ internal object DataFlowIR {
|
|||||||
|
|
||||||
is Node.StaticCall -> {
|
is Node.StaticCall -> {
|
||||||
val result = StringBuilder()
|
val result = StringBuilder()
|
||||||
result.appendln(" STATIC CALL ${node.callee}")
|
result.appendln(" STATIC CALL ${node.callee}. Return type = ${node.returnType}")
|
||||||
node.arguments.forEach {
|
node.arguments.forEach {
|
||||||
result.append(" ARG #${ids[it.node]!!}")
|
result.append(" ARG #${ids[it.node]!!}")
|
||||||
if (it.castToType == null)
|
if (it.castToType == null)
|
||||||
@@ -320,7 +320,7 @@ internal object DataFlowIR {
|
|||||||
|
|
||||||
is Node.VtableCall -> {
|
is Node.VtableCall -> {
|
||||||
val result = StringBuilder()
|
val result = StringBuilder()
|
||||||
result.appendln(" VIRTUAL CALL ${node.callee}")
|
result.appendln(" VIRTUAL CALL ${node.callee}. Return type = ${node.returnType}")
|
||||||
result.appendln(" RECEIVER: ${node.receiverType}")
|
result.appendln(" RECEIVER: ${node.receiverType}")
|
||||||
result.appendln(" VTABLE INDEX: ${node.calleeVtableIndex}")
|
result.appendln(" VTABLE INDEX: ${node.calleeVtableIndex}")
|
||||||
node.arguments.forEach {
|
node.arguments.forEach {
|
||||||
@@ -335,7 +335,7 @@ internal object DataFlowIR {
|
|||||||
|
|
||||||
is Node.ItableCall -> {
|
is Node.ItableCall -> {
|
||||||
val result = StringBuilder()
|
val result = StringBuilder()
|
||||||
result.appendln(" INTERFACE CALL ${node.callee}")
|
result.appendln(" INTERFACE CALL ${node.callee}. Return type = ${node.returnType}")
|
||||||
result.appendln(" RECEIVER: ${node.receiverType}")
|
result.appendln(" RECEIVER: ${node.receiverType}")
|
||||||
result.appendln(" METHOD HASH: ${node.calleeHash}")
|
result.appendln(" METHOD HASH: ${node.calleeHash}")
|
||||||
node.arguments.forEach {
|
node.arguments.forEach {
|
||||||
|
|||||||
Reference in New Issue
Block a user