use of com.android.dx.rop.code.Rop in project dexmaker by linkedin.
the class Code method compareZ.
/**
* Check if an int or reference equals to zero. If the comparison is true,
* execution jumps to {@code trueLabel}. If it is false, execution continues to
* the next instruction.
*/
public <T> void compareZ(Comparison comparison, Label trueLabel, Local<?> a) {
adopt(trueLabel);
Rop rop = comparison.rop(StdTypeList.make(a.type.ropType));
addInstruction(new PlainInsn(rop, sourcePosition, null, RegisterSpecList.make(a.spec())), trueLabel);
}
Aggregations