/* (non-Javadoc) * @see v9t9.tools.asm.operand.hl.AssemblerOperand#accept(v9t9.tools.asm.operand.hl.IOperandVisitor) */ @Override public void accept(IOperandVisitor visitor) { if (visitor.enterOperand(this)) { for (AssemblerOperand kid : getChildren()) kid.accept(visitor); visitor.exitOperand(this); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((original == null) ? 0 : original.hashCode()); return result; }
public LLOperand resolve(IAssembler assembler, IInstruction inst) throws ResolveException { if (original != null) return original.resolve(assembler, inst); return this; }
/* (non-Javadoc) * @see v9t9.tools.asm.operand.hl.BaseOperand#replaceOperand(v9t9.tools.asm.operand.hl.AssemblerOperand, v9t9.tools.asm.operand.hl.AssemblerOperand) */ @Override public AssemblerOperand replaceOperand(AssemblerOperand src, AssemblerOperand dst) { if (src.equals(this)) return dst; assert false : "not implemented"; return this; }