InsnFormat methods to write themselves. This
includes most — but not all — instructions.
| Access | Constructor and Description |
|---|---|
| public | FixedSizeInsn(Dop
the opcode; one of the constants from opcode, SourcePosition Dopsnon-null; source positionnon-null; register list, including a
result register if appropriate (that is, registers may be either
ins or outs)Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public final int | codeSize()
Implements abstract org. |
| protected final String | listingString0(boolean
whether to include an explicit notation of
constant pool indices noteIndices)Implements abstract org. listingString, which returns the string
form of this instance suitable for inclusion in a
human-oriented listing dump, not including the instruction
address and without respect for any output formatting.
|
| public final DalvInsn | withRegisterOffset(int
the amount to offset register references by delta)Implements abstract org. |
| public final void | writeTo(AnnotatedOutput
non-null; where to write toImplements abstract org. |
| FixedSizeInsn | back to summary |
|---|---|
| public FixedSizeInsn(Dop opcode, SourcePosition position, RegisterSpecList registers) Constructs an instance. The output address of this instance is initially
unknown ( Note In the unlikely event that an instruction takes
absolutely no registers (e.g., a
| |
| codeSize | back to summary |
|---|---|
| public final int codeSize() Implements abstract org. Doc from org. Gets the size of this instruction, in 16-bit code units.
| |
| listingString0 | back to summary |
|---|---|
| protected final String listingString0(boolean noteIndices) Implements abstract org. Doc from org. Helper for | |
| withRegisterOffset | back to summary |
|---|---|
| public final DalvInsn withRegisterOffset(int delta) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that all register references have been offset by the given delta, and its address is reset. | |
| writeTo | back to summary |
|---|---|
| public final void writeTo(AnnotatedOutput out) Implements abstract org. Doc from org. Writes this instance to the given output. This method should never annotate the output.
| |