Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2581:4a36a0bd6d18
added GraalGraph to classpath, Node as superclass of Value
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 13:27:48 +0200 |
parents | 16b9a8b5ad39 |
children | 768d77a1c7af |
comparison
equal
deleted
inserted
replaced
2579:4984c8ebd6c7 | 2581:4a36a0bd6d18 |
---|---|
101 public Value inputAt(int i) { | 101 public Value inputAt(int i) { |
102 FrameState state; | 102 FrameState state; |
103 if (block.isExceptionEntry()) { | 103 if (block.isExceptionEntry()) { |
104 state = block.exceptionHandlerStates().get(i); | 104 state = block.exceptionHandlerStates().get(i); |
105 } else { | 105 } else { |
106 state = block.predecessors().get(i).end().stateAfter(); | 106 state = block.blockPredecessors().get(i).end().stateAfter(); |
107 } | 107 } |
108 return inputIn(state); | 108 return inputIn(state); |
109 } | 109 } |
110 | 110 |
111 /** | 111 /** |
123 | 123 |
124 /** | 124 /** |
125 * Get the number of inputs to this phi (i.e. the number of predecessors to the join block). | 125 * Get the number of inputs to this phi (i.e. the number of predecessors to the join block). |
126 * @return the number of inputs in this phi | 126 * @return the number of inputs in this phi |
127 */ | 127 */ |
128 @Override | |
128 public int inputCount() { | 129 public int inputCount() { |
129 if (block.isExceptionEntry()) { | 130 if (block.isExceptionEntry()) { |
130 return block.exceptionHandlerStates().size(); | 131 return block.exceptionHandlerStates().size(); |
131 } else { | 132 } else { |
132 return block.predecessors().size(); | 133 return block.blockPredecessors().size(); |
133 } | 134 } |
134 } | 135 } |
135 | 136 |
136 @Override | 137 @Override |
137 public void accept(ValueVisitor v) { | 138 public void accept(ValueVisitor v) { |