Exemple #1
0
 /* (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);
   }
 }
Exemple #2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((original == null) ? 0 : original.hashCode());
   return result;
 }
Exemple #3
0
 public LLOperand resolve(IAssembler assembler, IInstruction inst) throws ResolveException {
   if (original != null) return original.resolve(assembler, inst);
   return this;
 }
Exemple #4
0
 /* (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;
 }