comparison graal/GraalCompiler/src/com/sun/c1x/ir/ShiftOp.java @ 2587:51ebe5f0516f

changed NegateOp, more Op2 changes (generic inputValuesDo impl)
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 05 May 2011 15:01:34 +0200
parents 421da5f53b5e
children 092e628ddd5d
comparison
equal deleted inserted replaced
2586:421da5f53b5e 2587:51ebe5f0516f
31 * 31 *
32 * @author Ben L. Titzer 32 * @author Ben L. Titzer
33 */ 33 */
34 public final class ShiftOp extends Op2 { 34 public final class ShiftOp extends Op2 {
35 35
36 private static final int INPUT_COUNT = 0;
37 private static final int SUCCESSOR_COUNT = 0;
38
36 /** 39 /**
37 * Creates a new shift operation. 40 * Creates a new shift operation.
38 * @param opcode the opcode of the shift 41 * @param opcode the opcode of the shift
39 * @param x the first input value 42 * @param x the first input value
40 * @param y the second input value 43 * @param y the second input value
41 */ 44 */
42 public ShiftOp(int opcode, Value x, Value y, Graph graph) { 45 public ShiftOp(int opcode, Value x, Value y, Graph graph) {
43 super(x.kind, opcode, x, y, graph); 46 super(x.kind, opcode, x, y, INPUT_COUNT, SUCCESSOR_COUNT, graph);
44 } 47 }
45 48
46 @Override 49 @Override
47 public void accept(ValueVisitor v) { 50 public void accept(ValueVisitor v) {
48 v.visitShiftOp(this); 51 v.visitShiftOp(this);