35c. See the instruction format spec
for details.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | MAX_NUM_OPS
Maximal number of operands |
| public static final InsnFormat | THE_ONE
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | codeSize()
Implements abstract org. |
| public BitSet | compatibleRegs(DalvInsn
non-null; the instruction to checkOverrides org. |
| private static RegisterSpecList | Returns: non-null; the list with the described transformationnon-null; the original listReturns a register list which is equivalent to the given one, except that it splits category-2 registers into two explicit entries. |
| public String | insnArgString(DalvInsn
non-null; the instructionImplements abstract org. |
| public String | insnCommentString(DalvInsn
non-null; the instructionwhether to include an explicit notation of
constant pool indices noteIndices)Implements abstract org. |
| public boolean | isCompatible(DalvInsn
non-null; the instruction to checkImplements abstract org. |
| private static int | Returns: >= -1; the number of words required, or -1
if the list couldn't possibly fit in this formatnon-null; the register list in questionGets the number of words required for the given register list, where category-2 values count as two words. |
| public void | writeTo(AnnotatedOutput
non-null; the output destination to write tonon-null; the instruction to writeImplements abstract org. |
| MAX_NUM_OPS | back to summary |
|---|---|
| private static final int MAX_NUM_OPS Maximal number of operands | |
| THE_ONE | back to summary |
|---|---|
| public static final InsnFormat THE_ONE
| |
| Form35c | back to summary |
|---|---|
| private Form35c() Constructs an instance. This class is not publicly
instantiable. Use | |
| codeSize | back to summary |
|---|---|
| public int codeSize() Implements abstract org. Doc from org. Gets the code size of instructions that use this format. The size is a number of 16-bit code units, not bytes. This should throw an exception if this format is of variable size.
| |
| compatibleRegs | back to summary |
|---|---|
| public BitSet compatibleRegs(DalvInsn insn) Overrides org. Doc from org. Returns which of a given instruction's registers will fit in this instance's format. The default implementation of this method always returns an empty BitSet. Subclasses must override this method if they have registers. | |
| explicitize | back to summary |
|---|---|
| private static RegisterSpecList explicitize(RegisterSpecList orig) Returns a register list which is equivalent to the given one, except that it splits category-2 registers into two explicit entries. This returns the original list if no modification is required
| |
| insnArgString | back to summary |
|---|---|
| public String insnArgString(DalvInsn insn) Implements abstract org. Doc from org. Returns the string form of the arguments to the given instruction.
The instruction must be of this instance's format. If the instruction
has no arguments, then the result should be Subclasses must override this method. | |
| insnCommentString | back to summary |
|---|---|
| public String insnCommentString(DalvInsn insn, boolean noteIndices) Implements abstract org. Doc from org. Returns the associated comment for the given instruction, if any.
The instruction must be of this instance's format. If the instruction
has no comment, then the result should be Subclasses must override this method. | |
| isCompatible | back to summary |
|---|---|
| public boolean isCompatible(DalvInsn insn) Implements abstract org. Doc from org. Returns whether or not the given instruction's arguments will fit in this instance's format. This includes such things as counting register arguments, checking register ranges, and making sure that additional arguments are of appropriate types and are in-range. If this format has a branch target but the instruction's branch offset is unknown, this method will simply not check the offset. Subclasses must override this method. | |
| wordCount | back to summary |
|---|---|
| private static int wordCount(RegisterSpecList regs) Gets the number of words required for the given register list, where
category-2 values count as two words. Return
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(AnnotatedOutput out, DalvInsn insn) Implements abstract org. Doc from org. Writes the code units for the given instruction to the given output destination. The instruction must be of this instance's format. Subclasses must override this method.
| |