comparison 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
comparison
equal deleted inserted replaced
2786:39a9d62e4c60 2787:9253df721472
32 * to a function call. 32 * to a function call.
33 */ 33 */
34 public final class Local extends Value { 34 public final class Local extends Value {
35 35
36 private static final int INPUT_COUNT = 1; 36 private static final int INPUT_COUNT = 1;
37
37 private static final int SUCCESSOR_COUNT = 0; 38 private static final int SUCCESSOR_COUNT = 0;
38 39
39 private final int index; 40 private final int index;
40 private RiType declaredType; 41 private RiType declaredType;
41 42
82 83
83 @Override 84 @Override
84 public void print(LogStream out) { 85 public void print(LogStream out) {
85 out.print("local[index ").print(index()).print(']'); 86 out.print("local[index ").print(index()).print(']');
86 } 87 }
88
89 @Override
90 protected int inputCount() {
91 return super.inputCount() + INPUT_COUNT;
92 }
93
94 @Override
95 protected int successorCount() {
96 return super.successorCount() + SUCCESSOR_COUNT;
97 }
87 } 98 }