Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Local.java @ 2787:9253df721472
Allow to return a map of "debug properties" in Node and subclasses and show these properties in the IdealGraphVisualizer. Also, fix inputCount() and successorCount() for Local.
author | Peter Hofer <peter.hofer@jku.at> |
---|---|
date | Wed, 25 May 2011 17:48:56 +0200 |
parents | 056e392d63d4 |
children | d3fc4fe063bf |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Local.java Wed May 25 17:10:53 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Local.java Wed May 25 17:48:56 2011 +0200 @@ -34,6 +34,7 @@ public final class Local extends Value { private static final int INPUT_COUNT = 1; + private static final int SUCCESSOR_COUNT = 0; private final int index; @@ -84,4 +85,14 @@ public void print(LogStream out) { out.print("local[index ").print(index()).print(']'); } + + @Override + protected int inputCount() { + return super.inputCount() + INPUT_COUNT; + } + + @Override + protected int successorCount() { + return super.successorCount() + SUCCESSOR_COUNT; + } }