Home | History | Annotate | Download | only in instruction

Lines Matching refs:opcode

45      * Creates a new SimpleInstruction with the given opcode.
47 public SimpleInstruction(byte opcode)
49 this(opcode, embeddedConstant(opcode));
54 * Creates a new SimpleInstruction with the given opcode and constant.
56 public SimpleInstruction(byte opcode, int constant)
58 this.opcode = opcode;
70 this.opcode = simpleInstruction.opcode;
78 * Return the embedded constant of the given opcode, or 0 if the opcode
81 private static int embeddedConstant(byte opcode)
83 switch (opcode)
111 switch (opcode)
133 default: return opcode;
139 // Reconstruct the opcode of the shortest instruction, if there are
141 switch (opcode)
155 opcode = (byte)(InstructionConstants.OP_ICONST_0 + constant);
158 opcode = InstructionConstants.OP_BIPUSH;
161 opcode = InstructionConstants.OP_SIPUSH;
168 opcode = (byte)(InstructionConstants.OP_LCONST_0 + constant);
174 opcode = (byte)(InstructionConstants.OP_FCONST_0 + constant);
179 opcode = (byte)(InstructionConstants.OP_DCONST_0 + constant);
192 embeddedConstant(opcode) :
238 return opcode == InstructionConstants.OP_BIPUSH ||
239 opcode == InstructionConstants.OP_NEWARRAY ? 1 :
240 opcode == InstructionConstants.OP_SIPUSH ? 2 :