Mercurial > hg > graal-compiler
changeset 8316:c210577168e7
Fixed not specializing nodes were named Null instead of Default.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 16 Mar 2013 16:11:40 +0100 |
parents | 3fbe6772dbf6 |
children | 3d515bfc1677 |
files | graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java Sat Mar 16 15:53:48 2013 +0100 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java Sat Mar 16 16:11:40 2013 +0100 @@ -407,6 +407,9 @@ // reduce id horizontally for (List<String> signature : signatureChunks) { + if (signature.isEmpty()) { + continue; + } String prev = null; boolean allSame = true; for (String arg : signature) { @@ -430,8 +433,12 @@ List<String> signatures = new ArrayList<>(); for (List<String> signatureChunk : signatureChunks) { StringBuilder b = new StringBuilder(); - for (String s : signatureChunk) { - b.append(s); + if (signatureChunk.isEmpty()) { + b.append("Default"); + } else { + for (String s : signatureChunk) { + b.append(s); + } } signatures.add(b.toString()); }