Lines Matching defs:opcode

23  * Representation of an opcode.
26 /** {@code Opcodes.isValid();} the opcode value itself */
27 private final int opcode;
29 /** {@code Opcodes.isValid();} the opcode family */
33 * {@code Opcodes.isValid();} what opcode (by number) to try next
34 * when attempting to match an opcode to particular arguments;
36 * opcode to try in a particular chain
43 /** whether this opcode uses a result register */
49 * @param opcode {@code Opcodes.isValid();} the opcode value
51 * @param family {@code Opcodes.isValid();} the opcode family
52 * @param nextOpcode {@code Opcodes.isValid();} what opcode (by
53 * number) to try next when attempting to match an opcode to
55 * this is the last opcode to try in a particular chain
57 * @param hasResult whether the opcode has a result register; if so it
60 public Dop(int opcode, int family, int nextOpcode, InsnFormat format,
62 if (!Opcodes.isValidShape(opcode)) {
63 throw new IllegalArgumentException("bogus opcode");
78 this.opcode = opcode;
92 * Gets the opcode value.
94 * @return {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the opcode value
97 return opcode;
101 * Gets the opcode family. The opcode family is the unmarked (no
102 * "/...") opcode that has equivalent semantics to this one.
104 * @return {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the opcode family
120 * Returns whether this opcode uses a result register.
122 * @return {@code true} iff this opcode uses a result register
129 * Gets the opcode name.
131 * @return {@code non-null;} the opcode name
134 return OpcodeInfo.getName(opcode);
138 * Gets the opcode value to try next when attempting to match an
139 * opcode to particular arguments. This returns {@code
140 * Opcodes.NO_NEXT} to indicate that this is the last opcode to
143 * @return {@code Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;} the opcode value
150 * Gets the opcode for the opposite test of this instance. This is only
156 switch (opcode) {
171 throw new IllegalArgumentException("bogus opcode: " + this);