move* instructions to move a set of registers into
registers starting at 0 sequentially. This is used
in translating an instruction whose register requirements cannot
be met using a straightforward choice of a single opcode.
| Modifier and Type | Field and Description |
|---|---|
| private SimpleInsn[] | insns
|
| Access | Constructor and Description |
|---|---|
| public | HighRegisterPrefix(SourcePosition
non-null; source positionnon-null; source registersConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | argString()
Implements abstract org. |
| private void | |
| public int | codeSize()
Implements abstract org. |
| protected 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.
|
| private static SimpleInsn | Returns: non-null; the appropriate move instructionnon-null; the source register spec>= 0; the destination register indexReturns the proper move instruction for the given source spec and destination index. |
| public DalvInsn | withRegisters(RegisterSpecList
non-null; new register listImplements abstract org. |
| public void | writeTo(AnnotatedOutput
non-null; where to write toImplements abstract org. |
| insns | back to summary |
|---|---|
| private SimpleInsn[] insns
| |
| HighRegisterPrefix | back to summary |
|---|---|
| public HighRegisterPrefix(SourcePosition position, RegisterSpecList registers) Constructs an instance. The output address of this instance is initially
unknown (
| |
| argString | back to summary |
|---|---|
| protected String argString() Implements abstract org. Doc from org. Gets the string form for any arguments to this instance. Subclasses must override this. | |
| calculateInsnsIfNecessary | back to summary |
|---|---|
| private void calculateInsnsIfNecessary() Helper for | |
| codeSize | back to summary |
|---|---|
| public int codeSize() Implements abstract org. Doc from org. Gets the size of this instruction, in 16-bit code units.
| |
| listingString0 | back to summary |
|---|---|
| protected String listingString0(boolean noteIndices) Implements abstract org. Doc from org. Helper for | |
| moveInsnFor | back to summary |
|---|---|
| private static SimpleInsn moveInsnFor(RegisterSpec src, int destIndex) Returns the proper move instruction for the given source spec and destination index.
| |
| withRegisters | back to summary |
|---|---|
| public DalvInsn withRegisters(RegisterSpecList registers) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that the register list is replaced by the given one, and its address is reset.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(AnnotatedOutput out) Implements abstract org. Doc from org. Writes this instance to the given output. This method should never annotate the output.
| |