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 File: ImmutableInstruction35c.java From ZjDroid with Apache License 2.0 | 5 votes |
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 File: ImmutableInstruction35c.java From zjdroid with Apache License 2.0 | 5 votes |
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 File: FilledNewArrayInstruction.java From JAADAS with GNU General Public License v3.0 | 5 votes |
/** * 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 File: MethodInvocationInstruction.java From JAADAS with GNU General Public License v3.0 | 5 votes |
/** * 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 File: ImmutableInstruction35c.java From HeyGirl with Apache License 2.0 | 5 votes |
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 File: ImmutableInstruction35c.java From ZjDroid with Apache License 2.0 | 5 votes |
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 File: FilledNewArrayInstruction.java From JAADAS with GNU General Public License v3.0 | 4 votes |
@Override boolean isUsedAsFloatingPoint(DexBody body, int register) { Instruction35c i = (Instruction35c) instruction; Type arrayType = DexType.toSoot((TypeReference) i.getReference()); return isRegisterUsed(register) && isFloatLike(arrayType); }