| Modifier and Type | Field and Description |
|---|---|
| private CodeAddress | target
|
| Access | Constructor and Description |
|---|---|
| public | TargetInsn(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)non-null; the branch targetConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | argString()
Implements abstract org. |
| public CodeAddress | |
| public int | |
| public int | |
| public boolean | Returns: true if the target offset is known or
false if notReturns whether the target offset is known. |
| public TargetInsn | Returns: non-null; an appropriately-constructed instancenon-null; the new branch targetReturns an instance that is just like this one, except that its
opcode has the opposite sense (as a test; e.g. a
|
| public DalvInsn | withOpcode(Dop
non-null; the new opcodeImplements abstract org. |
| public DalvInsn | withRegisters(RegisterSpecList
non-null; new register listImplements abstract org. |
| target | back to summary |
|---|---|
| private CodeAddress target
| |
| TargetInsn | back to summary |
|---|---|
| public TargetInsn(Dop opcode, SourcePosition position, RegisterSpecList registers, CodeAddress target) 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. | |
| getTarget | back to summary |
|---|---|
| public CodeAddress getTarget() Gets the unique branch target of this instruction.
| |
| getTargetAddress | back to summary |
|---|---|
| public int getTargetAddress() Gets the target address of this instruction. This is only valid
to call if the target instruction has been assigned an address,
and it is merely a convenient shorthand for
| |
| getTargetOffset | back to summary |
|---|---|
| public int getTargetOffset() Gets the branch offset of this instruction. This is only valid to
call if both this and the target instruction each has been assigned
an address, and it is merely a convenient shorthand for
| |
| hasTargetOffset | back to summary |
|---|---|
| public boolean hasTargetOffset() Returns whether the target offset is known.
| |
| withNewTargetAndReversed | back to summary |
|---|---|
| public TargetInsn withNewTargetAndReversed(CodeAddress target) Returns an instance that is just like this one, except that its
opcode has the opposite sense (as a test; e.g. a
| |
| withOpcode | back to summary |
|---|---|
| public DalvInsn withOpcode(Dop opcode) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that its opcode is replaced by the one given, and its address is reset. | |
| 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.
| |