Mercurial > hg > graal-compiler
changeset 22215:d0e58146ac75
CFGPrinter: do not use NodeLIRBuilder#getNodeOperands.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 01 Jul 2015 17:19:11 +0200 |
parents | d2ca00003481 |
children | 090f8f3bbe61 |
files | graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinter.java |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinter.java Wed Jul 01 17:21:45 2015 +0200 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinter.java Wed Jul 01 17:19:11 2015 +0200 @@ -314,7 +314,7 @@ out.print("tid ").print(nodeToString(node)).println(COLUMN_END); if (nodeLirGenerator != null) { - Value operand = nodeLirGenerator.getNodeOperands().get(node); + Value operand = nodeLirGenerator.hasOperand(node) ? nodeLirGenerator.operand(node) : null; if (operand != null) { out.print("result ").print(operand.toString()).println(COLUMN_END); } @@ -418,11 +418,10 @@ private String stateValueToString(ValueNode value) { String result = nodeToString(value); - if (nodeLirGenerator != null && nodeLirGenerator.getNodeOperands() != null && value != null) { - Value operand = nodeLirGenerator.getNodeOperands().get(value); - if (operand != null) { - result += ": " + operand; - } + if (nodeLirGenerator != null && value != null && nodeLirGenerator.hasOperand(value)) { + Value operand = nodeLirGenerator.operand(value); + assert operand != null; + result += ": " + operand; } return result; }