Mercurial > hg > graal-jvmci-8
changeset 4210:4e86f3befd65
Improve debug printing
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Tue, 03 Jan 2012 18:36:53 -0800 |
parents | 41b9ca06bcc8 |
children | bf6d8bcde8a0 |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRInstruction.java |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRInstruction.java Tue Jan 03 18:35:37 2012 -0800 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRInstruction.java Tue Jan 03 18:36:53 2012 -0800 @@ -307,15 +307,21 @@ public String operationString() { StringBuilder buf = new StringBuilder(); String sep = ""; + if (outputs.length > 1) { + buf.append("("); + } for (CiValue output : outputs) { - buf.append(output); + buf.append(sep).append(output); sep = ", "; } + if (outputs.length > 1) { + buf.append(")"); + } if (outputs.length > 0) { buf.append(" = "); } - if (inputs.length + alives.length > 1) { + if (inputs.length + alives.length != 1) { buf.append("("); } sep = ""; @@ -327,7 +333,7 @@ buf.append(sep).append(input).append(" ~"); sep = ", "; } - if (inputs.length + alives.length > 1) { + if (inputs.length + alives.length != 1) { buf.append(")"); }