Methods Summary |
---|
public int | codeSize(){@inheritDoc}
return 2;
|
public java.util.BitSet | compatibleRegs(com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
RegisterSpecList regs = insn.getRegisters();
BitSet bits = new BitSet(3);
bits.set(0, unsignedFitsInByte(regs.get(0).getReg()));
bits.set(1, unsignedFitsInByte(regs.get(1).getReg()));
bits.set(2, unsignedFitsInByte(regs.get(2).getReg()));
return bits;
|
public java.lang.String | insnArgString(com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
RegisterSpecList regs = insn.getRegisters();
return regs.get(0).regString() + ", " + regs.get(1).regString() +
", " + regs.get(2).regString();
|
public java.lang.String | insnCommentString(com.android.dx.dex.code.DalvInsn insn, boolean noteIndices){@inheritDoc}
// This format has no comment.
return "";
|
public boolean | isCompatible(com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
RegisterSpecList regs = insn.getRegisters();
return (insn instanceof SimpleInsn) &&
(regs.size() == 3) &&
unsignedFitsInByte(regs.get(0).getReg()) &&
unsignedFitsInByte(regs.get(1).getReg()) &&
unsignedFitsInByte(regs.get(2).getReg());
|
public void | writeTo(com.android.dx.util.AnnotatedOutput out, com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
RegisterSpecList regs = insn.getRegisters();
write(out,
opcodeUnit(insn, regs.get(0).getReg()),
codeUnit(regs.get(1).getReg(), regs.get(2).getReg()));
|