Home | History | Annotate | Download | only in code

Lines Matching refs:target

23  * Instruction which has a single branch target.
26 /** {@code non-null;} the branch target */
27 private CodeAddress target;
31 * unknown ({@code -1}), and the target is initially
39 * @param target {@code non-null;} the branch target
42 RegisterSpecList registers, CodeAddress target) {
45 if (target == null) {
46 throw new NullPointerException("target == null");
49 this.target = target;
55 return new TargetInsn(opcode, getPosition(), getRegisters(), target);
61 return new TargetInsn(getOpcode(), getPosition(), registers, target);
68 * target is replaced by the one given, and all set-once values
71 * @param target {@code non-null;} the new branch target
74 public TargetInsn withNewTargetAndReversed(CodeAddress target) {
77 return new TargetInsn(opcode, getPosition(), getRegisters(), target);
81 * Gets the unique branch target of this instruction.
83 * @return {@code non-null;} the branch target
86 return target;
90 * Gets the target address of this instruction. This is only valid
91 * to call if the target instruction has been assigned an address,
95 * @return {@code >= 0;} the target address
98 return target.getAddress();
103 * call if both this and the target instruction each has been assigned
110 return target.getAddress() - getAddress();
114 * Returns whether the target offset is known.
116 * @return {@code true} if the target offset is known or
120 return hasAddress() && target.hasAddress();
126 if (target == null) {
130 return target.identifierString();