Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ArithmeticOp.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 | 3558ca7088c0 |
comparison
equal
deleted
inserted
replaced
2586:421da5f53b5e | 2587:51ebe5f0516f |
---|---|
31 /** | 31 /** |
32 * The {@code ArithmeticOp} class represents arithmetic operations such as addition, subtraction, etc. | 32 * The {@code ArithmeticOp} class represents arithmetic operations such as addition, subtraction, etc. |
33 */ | 33 */ |
34 public final class ArithmeticOp extends Op2 { | 34 public final class ArithmeticOp extends Op2 { |
35 | 35 |
36 private static final int INPUT_COUNT = 0; | |
37 private static final int SUCCESSOR_COUNT = 0; | |
38 | |
36 private final FrameState stateBefore; | 39 private final FrameState stateBefore; |
37 private final boolean isStrictFP; | 40 private final boolean isStrictFP; |
38 | 41 |
39 /** | 42 /** |
40 * Creates a new arithmetic operation. | 43 * Creates a new arithmetic operation. |
44 * @param y the second input instruction | 47 * @param y the second input instruction |
45 * @param isStrictFP indicates this operation has strict rounding semantics | 48 * @param isStrictFP indicates this operation has strict rounding semantics |
46 * @param stateBefore the state for instructions that may trap | 49 * @param stateBefore the state for instructions that may trap |
47 */ | 50 */ |
48 public ArithmeticOp(int opcode, CiKind kind, Value x, Value y, boolean isStrictFP, FrameState stateBefore, Graph graph) { | 51 public ArithmeticOp(int opcode, CiKind kind, Value x, Value y, boolean isStrictFP, FrameState stateBefore, Graph graph) { |
49 super(kind, opcode, x, y, graph); | 52 super(kind, opcode, x, y, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
50 this.isStrictFP = isStrictFP; | 53 this.isStrictFP = isStrictFP; |
51 this.stateBefore = stateBefore; | 54 this.stateBefore = stateBefore; |
52 } | 55 } |
53 | 56 |
54 @Override | 57 @Override |