Home
last modified time | relevance | path

Searched refs:mInsn (Results 1 – 19 of 19) sorted by relevance

/art/tools/dexfuzz/src/dexfuzz/program/
DCodeTranslator.java80 MInsn mInsn = null; in codeItemToMutatableCode() local
83 mInsn = new MSwitchInsn(); in codeItemToMutatableCode()
85 mInsn = new MBranchInsn(); in codeItemToMutatableCode()
87 mInsn = new MInsnWithData(); in codeItemToMutatableCode()
89 mInsn = new MInsn(); in codeItemToMutatableCode()
92 mInsn.insn = insn; in codeItemToMutatableCode()
95 insnLocationMap.put(loc, mInsn); in codeItemToMutatableCode()
98 mutatableCode.addInstructionToEnd(mInsn); in codeItemToMutatableCode()
101 mInsn.location = loc; in codeItemToMutatableCode()
102 mInsn.locationUpdated = false; in codeItemToMutatableCode()
[all …]
DMutatableCode.java103 public void updateInstructionLocationsAfter(MInsn mInsn, int offset) { in updateInstructionLocationsAfter() argument
110 if (mInsnChecking == mInsn) { in updateInstructionLocationsAfter()
120 for (MInsn mInsn : mutatableInsns) { in recalculateLocations()
121 mInsn.location = loc; in recalculateLocations()
122 loc += mInsn.insn.getSize(); in recalculateLocations()
134 public int getInstructionIndex(MInsn mInsn) { in getInstructionIndex() argument
135 return mutatableInsns.indexOf(mInsn); in getInstructionIndex()
142 public void addInstructionToEnd(MInsn mInsn) { in addInstructionToEnd() argument
143 mutatableInsns.add(mInsn); in addInstructionToEnd()
251 for (MInsn mInsn : mutatableInsns) { in deleteInstructionFull()
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DCmpBiasChanger.java78 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedCmpBiasInsns()
79 if (isCmpBiasOperation(mInsn)) { in generateCachedCmpBiasInsns()
80 cmpBiasInsns.add(mInsn); in generateCachedCmpBiasInsns()
87 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
88 if (isCmpBiasOperation(mInsn)) { in canMutate()
133 private Opcode getLegalDifferentOpcode(MInsn mInsn) { in getLegalDifferentOpcode() argument
134 Opcode opcode = mInsn.insn.info.opcode; in getLegalDifferentOpcode()
147 private boolean isCmpBiasOperation(MInsn mInsn) { in isCmpBiasOperation() argument
148 Opcode opcode = mInsn.insn.info.opcode; in isCmpBiasOperation()
DNewArrayLengthChanger.java78 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedArrayLengthInsns()
79 if (isNewArray(mInsn)) { in generateCachedArrayLengthInsns()
80 newArrayLengthInsns.add(mInsn); in generateCachedArrayLengthInsns()
87 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
90 if (isNewArray(mInsn)) { in canMutate()
143 private boolean isNewArray(MInsn mInsn) { in isNewArray() argument
144 Opcode opcode = mInsn.insn.info.opcode; in isNewArray()
151 for (MInsn mInsn : mutatableCode.getInstructions()) { in scanNewArray()
152 if (isNewArray(mInsn)) { in scanNewArray()
DIfBranchChanger.java85 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedifBranchInsns()
86 if (isIfBranchOperation(mInsn)) { in generateCachedifBranchInsns()
87 ifBranchInsns.add(mInsn); in generateCachedifBranchInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
95 if (isIfBranchOperation(mInsn)) { in canMutate()
143 protected abstract Opcode getModifiedOpcode(MInsn mInsn); in getModifiedOpcode() argument
151 private boolean isIfBranchOperation(MInsn mInsn) { in isIfBranchOperation() argument
152 Opcode opcode = mInsn.insn.info.opcode; in isIfBranchOperation()
DInvokeChanger.java96 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedinvokeCallInsns()
97 if (isInvokeCallInst(mInsn)) { in generateCachedinvokeCallInsns()
98 invokeCallInsns.add(mInsn); in generateCachedinvokeCallInsns()
105 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
106 if (isInvokeCallInst(mInsn)) { in canMutate()
151 private Opcode getDifferentInvokeCallOpcode(MInsn mInsn) { in getDifferentInvokeCallOpcode() argument
152 Opcode opcode = mInsn.insn.info.opcode; in getDifferentInvokeCallOpcode()
174 private boolean isInvokeCallInst(MInsn mInsn) { in isInvokeCallInst() argument
175 Opcode opcode = mInsn.insn.info.opcode; in isInvokeCallInst()
DNewInstanceChanger.java89 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedNewInstanceInsns()
90 if (mInsn.insn.info.opcode == Opcode.NEW_INSTANCE) { in generateCachedNewInstanceInsns()
91 newInstanceCachedInsns.add(mInsn); in generateCachedNewInstanceInsns()
104 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
105 if (mInsn.insn.info.opcode == Opcode.NEW_INSTANCE) { in canMutate()
201 protected boolean isInvokeInst(MInsn mInsn) { in isInvokeInst() argument
202 return (mInsn.insn.info.opcode == Opcode.INVOKE_DIRECT || in isInvokeInst()
203 mInsn.insn.info.opcode == Opcode.INVOKE_DIRECT_RANGE); in isInvokeInst()
210 for (MInsn mInsn : mutatableCode.getInstructions()) { in foundInsnIdx()
211 if (mInsn == newInstanceInsn) { in foundInsnIdx()
DFieldFlagChanger.java85 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedFieldInsns()
86 if (isFileDefinedFieldInstruction(mInsn, mutatableCode)) { in generateCachedFieldInsns()
87 fieldInsns.add(mInsn); in generateCachedFieldInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
95 if (isFileDefinedFieldInstruction(mInsn, mutatableCode)) { in canMutate()
155 private boolean isFileDefinedFieldInstruction(MInsn mInsn, MutatableCode mutatableCode) { in isFileDefinedFieldInstruction() argument
156 Opcode opcode = mInsn.insn.info.opcode; in isFileDefinedFieldInstruction()
158 Instruction insn = mInsn.insn; in isFileDefinedFieldInstruction()
DConversionRepeater.java78 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedConversionInsns()
79 if (isConversionInstruction(mInsn)) { in generateCachedConversionInsns()
80 conversionInsns.add(mInsn); in generateCachedConversionInsns()
87 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
88 if (isConversionInstruction(mInsn)) { in canMutate()
193 private boolean isConversionInstruction(MInsn mInsn) { in isConversionInstruction() argument
194 Opcode opcode = mInsn.insn.info.opcode; in isConversionInstruction()
DPoolIndexChanger.java82 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedPoolIndexInsns()
83 if (mInsn.insn.info.format instanceof ContainsPoolIndex) { in generateCachedPoolIndexInsns()
84 poolIndexInsns.add(mInsn); in generateCachedPoolIndexInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
95 if (mInsn.insn.info.format instanceof ContainsPoolIndex) { in canMutate()
98 (ContainsPoolIndex)mInsn.insn.info.format; in canMutate()
101 containsPoolIndex.getPoolIndexKind(mInsn.insn.info); in canMutate()
DBranchShifter.java82 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedBranchInsns()
83 if (mInsn instanceof MBranchInsn) { in generateCachedBranchInsns()
84 branchInsns.add((MBranchInsn) mInsn); in generateCachedBranchInsns()
96 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
97 if (mInsn instanceof MBranchInsn) { in canMutate()
DConstantValueChanger.java81 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedConstInsns()
82 if (mInsn.insn.info.format instanceof ContainsConst) { in generateCachedConstInsns()
83 constInsns.add(mInsn); in generateCachedConstInsns()
90 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
91 if (mInsn.insn.info.format instanceof ContainsConst) { in canMutate()
DInstructionDeleter.java119 for (MInsn mInsn : mutatableCode.getInstructions()) { in applyMutation()
120 if (mInsn instanceof MInsnWithData) { in applyMutation()
121 if (((MInsnWithData)mInsn).dataTarget == toBeDeleted) { in applyMutation()
122 withDataInsn = mInsn; in applyMutation()
DSwitchBranchShifter.java85 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedSwitchInsns()
86 if (mInsn instanceof MSwitchInsn) { in generateCachedSwitchInsns()
87 switchInsns.add((MSwitchInsn) mInsn); in generateCachedSwitchInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
95 if (mInsn instanceof MSwitchInsn) { in canMutate()
DVRegChanger.java84 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedVRegInsns()
85 if (mInsn.insn.info.format instanceof ContainsVRegs) { in generateCachedVRegInsns()
86 vregInsns.add(mInsn); in generateCachedVRegInsns()
98 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
99 if (mInsn.insn.info.format instanceof ContainsVRegs) { in canMutate()
DArithOpChanger.java84 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedArithmeticInsns()
85 if (isArithmeticOperation(mInsn)) { in generateCachedArithmeticInsns()
86 arithmeticInsns.add(mInsn); in generateCachedArithmeticInsns()
93 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
94 if (isArithmeticOperation(mInsn)) { in canMutate()
150 private boolean isArithmeticOperation(MInsn mInsn) { in isArithmeticOperation() argument
151 Opcode opcode = mInsn.insn.info.opcode; in isArithmeticOperation()
158 private Opcode getLegalDifferentOpcode(MInsn mInsn) { in getLegalDifferentOpcode() argument
159 Opcode opcode = mInsn.insn.info.opcode; in getLegalDifferentOpcode()
DOppositeBranchChanger.java35 protected Opcode getModifiedOpcode(MInsn mInsn) { in getModifiedOpcode() argument
36 Opcode opcode = mInsn.insn.info.opcode; in getModifiedOpcode()
DRandomBranchChanger.java52 protected Opcode getModifiedOpcode(MInsn mInsn) { in getModifiedOpcode() argument
53 Opcode opcode = mInsn.insn.info.opcode; in getModifiedOpcode()
DValuePrinter.java67 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
68 if (getInstructionOutputType(mInsn) != OutputType.UNKNOWN) { in canMutate()
215 private OutputType getInstructionOutputType(MInsn mInsn) { in getInstructionOutputType() argument
216 Opcode opcode = mInsn.insn.info.opcode; in getInstructionOutputType()