org.jf.dexlib2.iface.instruction.formats.Instruction35c Java Examples

The following examples show how to use org.jf.dexlib2.iface.instruction.formats.Instruction35c. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: ZjDroid   Author: KB5201314   File: ImmutableInstruction35c.java    License: Apache License 2.0 5 votes vote down vote up
public static ImmutableInstruction35c of(Instruction35c instruction) {
    if (instruction instanceof ImmutableInstruction35c) {
        return (ImmutableInstruction35c)instruction;
    }
    return new ImmutableInstruction35c(
            instruction.getOpcode(),
            instruction.getRegisterCount(),
            instruction.getRegisterC(),
            instruction.getRegisterD(),
            instruction.getRegisterE(),
            instruction.getRegisterF(),
            instruction.getRegisterG(),
            instruction.getReference());
}
 
Example #2
Source Project: zjdroid   Author: Miracle963   File: ImmutableInstruction35c.java    License: Apache License 2.0 5 votes vote down vote up
public static ImmutableInstruction35c of(Instruction35c instruction) {
    if (instruction instanceof ImmutableInstruction35c) {
        return (ImmutableInstruction35c)instruction;
    }
    return new ImmutableInstruction35c(
            instruction.getOpcode(),
            instruction.getRegisterCount(),
            instruction.getRegisterC(),
            instruction.getRegisterD(),
            instruction.getRegisterE(),
            instruction.getRegisterF(),
            instruction.getRegisterG(),
            instruction.getReference());
}
 
Example #3
Source Project: JAADAS   Author: flankerhqd   File: FilledNewArrayInstruction.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check if register is referenced by this instruction.
 *
 */
private boolean isRegisterUsed(int register) {
    Instruction35c i = (Instruction35c) instruction;
    return register == i.getRegisterD() ||
        register == i.getRegisterE() ||
        register == i.getRegisterF() ||
        register == i.getRegisterG() ||
        register == i.getRegisterC();
}
 
Example #4
Source Project: JAADAS   Author: flankerhqd   File: MethodInvocationInstruction.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
 * Return the indices used in this instruction.
 *
 * @return a list of register indices
 */
protected List<Integer> getUsedRegistersNums() {
    if (instruction instanceof Instruction35c)
        return getUsedRegistersNums((Instruction35c) instruction);
    else if (instruction instanceof Instruction3rc)
        return getUsedRegistersNums((Instruction3rc) instruction);
    throw new RuntimeException("Instruction is neither a InvokeInstruction nor a InvokeRangeInstruction");
}
 
Example #5
Source Project: HeyGirl   Author: mikusjelly   File: ImmutableInstruction35c.java    License: Apache License 2.0 5 votes vote down vote up
public static ImmutableInstruction35c of(Instruction35c instruction) {
    if (instruction instanceof ImmutableInstruction35c) {
        return (ImmutableInstruction35c)instruction;
    }
    return new ImmutableInstruction35c(
            instruction.getOpcode(),
            instruction.getRegisterCount(),
            instruction.getRegisterC(),
            instruction.getRegisterD(),
            instruction.getRegisterE(),
            instruction.getRegisterF(),
            instruction.getRegisterG(),
            instruction.getReference());
}
 
Example #6
Source Project: ZjDroid   Author: halfkiss   File: ImmutableInstruction35c.java    License: Apache License 2.0 5 votes vote down vote up
public static ImmutableInstruction35c of(Instruction35c instruction) {
    if (instruction instanceof ImmutableInstruction35c) {
        return (ImmutableInstruction35c)instruction;
    }
    return new ImmutableInstruction35c(
            instruction.getOpcode(),
            instruction.getRegisterCount(),
            instruction.getRegisterC(),
            instruction.getRegisterD(),
            instruction.getRegisterE(),
            instruction.getRegisterF(),
            instruction.getRegisterG(),
            instruction.getReference());
}
 
Example #7
Source Project: JAADAS   Author: flankerhqd   File: FilledNewArrayInstruction.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Override
boolean isUsedAsFloatingPoint(DexBody body, int register) {
    Instruction35c i = (Instruction35c) instruction;
    Type arrayType = DexType.toSoot((TypeReference) i.getReference());
    return isRegisterUsed(register) && isFloatLike(arrayType);
}