Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java @ 8595:8a1115c92271
Implemented codegen guard definitions can now omit unused parameters.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 01 Apr 2013 21:43:20 +0200 |
parents | a80bf36c6a1e |
children | 8b9ea2f5c36e |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java Mon Apr 01 12:19:15 2013 +0200 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java Mon Apr 01 21:43:20 2013 +0200 @@ -313,7 +313,7 @@ private String dump(int level) { String indent = ""; for (int i = 0; i < level; i++) { - indent += " "; + indent += " "; } StringBuilder builder = new StringBuilder(); @@ -341,7 +341,7 @@ if (value instanceof List) { List<?> list = (List<?>) value; if (!list.isEmpty()) { - b.append(String.format("\n%s %s = %s", indent, propertyName, dumpList((List<?>) value))); + b.append(String.format("\n%s %s = %s", indent, propertyName, dumpList(indent, (List<?>) value))); } } else { if (value != null) { @@ -350,7 +350,7 @@ } } - private static String dumpList(List<?> array) { + private static String dumpList(String indent, List<?> array) { if (array == null) { return "null"; } @@ -364,12 +364,12 @@ StringBuilder b = new StringBuilder(); b.append("["); for (Object object : array) { - b.append("\n"); - b.append(" "); + b.append("\n "); + b.append(indent); b.append(object); b.append(", "); } - b.append("\n ]"); + b.append("\n ").append(indent).append("]"); return b.toString(); }