comparison graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java @ 2715:3ac3dd97d8df

Added ExceptionEdgeInstruction interface.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 13:21:31 +0200
parents e235eb9e7b54
children c1a9bf38da28
comparison
equal deleted inserted replaced
2714:e235eb9e7b54 2715:3ac3dd97d8df
164 public boolean valueEqual(Instruction i) { 164 public boolean valueEqual(Instruction i) {
165 return false; 165 return false;
166 } 166 }
167 167
168 /** 168 /**
169 * Gets the name of this instruction as a string.
170 * @return the name of this instruction
171 */
172 public final String name() {
173 return getClass().getSimpleName();
174 }
175
176 /**
177 * Apply the specified closure to all the values of this instruction, including
178 * input values, state values, and other values.
179 * @param closure the closure to apply
180 */
181 public final void allValuesDo(ValueClosure closure) {
182 inputValuesDo(closure);
183 }
184
185 /**
186 * Gets the state after the instruction, if it is recorded. Typically only 169 * Gets the state after the instruction, if it is recorded. Typically only
187 * instances of {@link BlockEnd} have a non-null state after. 170 * instances of {@link BlockEnd} have a non-null state after.
188 * @return the state after the instruction 171 * @return the state after the instruction
189 */ 172 */
190 public FrameState stateAfter() { 173 public FrameState stateAfter() {
191 return null; 174 return null;
192 } 175 }
193
194 public BlockBegin exceptionEdge() {
195 return null;
196 }
197 } 176 }