Home
last modified time | relevance | path

Searched refs:MInsn (Results 1 – 24 of 24) sorted by relevance

/art/tools/dexfuzz/src/dexfuzz/program/
DMutatableCode.java66 private List<MInsn> mutatableInsns;
96 this.mutatableInsns = new LinkedList<MInsn>(); in MutatableCode()
103 public void updateInstructionLocationsAfter(MInsn mInsn, int offset) { in updateInstructionLocationsAfter()
105 for (MInsn mInsnChecking : mutatableInsns) { in updateInstructionLocationsAfter()
120 for (MInsn mInsn : mutatableInsns) { in recalculateLocations()
126 public List<MInsn> getInstructions() { in getInstructions()
134 public int getInstructionIndex(MInsn mInsn) { in getInstructionIndex()
138 public MInsn getInstructionAt(int idx) { in getInstructionAt()
142 public void addInstructionToEnd(MInsn mInsn) { in addInstructionToEnd()
146 public void insertInstructionAfter(MInsn toBeInserted, int insertionIdx) { in insertInstructionAfter()
[all …]
DMTryBlock.java25 public MInsn startInsn;
26 public MInsn endInsn;
27 public List<MInsn> handlers;
28 public MInsn catchAllHandler;
DMInsn.java25 public class MInsn { class
46 public MInsn clone() { in clone()
47 MInsn newInsn = new MInsn(); in clone()
DCodeTranslator.java73 Map<Integer,MInsn> insnLocationMap = new HashMap<Integer,MInsn>(); in codeItemToMutatableCode()
80 MInsn mInsn = null; in codeItemToMutatableCode()
89 mInsn = new MInsn(); in codeItemToMutatableCode()
108 for (MInsn mInsn : mutatableCode.getInstructions()) { in codeItemToMutatableCode()
152 for (MInsn mInsn : mutatableCode.getInstructions()) { in mutatableCodeToCodeItem()
173 for (MInsn mInsn : mutatableCode.getInstructions()) { in mutatableCodeToCodeItem()
177 MInsn target = ((MInsnWithData) mInsn).dataTarget; in mutatableCodeToCodeItem()
182 MInsn target = ((MBranchInsn) mInsn).target; in mutatableCodeToCodeItem()
250 Map<Integer,MInsn> insnLocationMap) { in readTryBlocks()
300 mTryBlock.handlers = new LinkedList<MInsn>(); in readTryBlocks()
[all …]
DMSwitchInsn.java29 public List<MInsn> targets = new LinkedList<MInsn>();
43 for (MInsn target : targets) { in clone()
DMBranchInsn.java22 public class MBranchInsn extends MInsn {
26 public MInsn target;
DMInsnWithData.java22 public class MInsnWithData extends MInsn {
26 public MInsn dataTarget;
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DCmpBiasChanger.java21 import dexfuzz.program.MInsn;
69 private List<MInsn> cmpBiasInsns = null;
76 cmpBiasInsns = new ArrayList<MInsn>(); in generateCachedCmpBiasInsns()
78 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedCmpBiasInsns()
87 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
117 MInsn cmpBiasInsn = cmpBiasInsns.get(mutation.cmpBiasInsnIdx); in applyMutation()
133 private Opcode getLegalDifferentOpcode(MInsn mInsn) { in getLegalDifferentOpcode()
147 private boolean isCmpBiasOperation(MInsn mInsn) { in isCmpBiasOperation()
DConversionRepeater.java21 import dexfuzz.program.MInsn;
69 private List<MInsn> conversionInsns = null;
76 conversionInsns = new ArrayList<MInsn>(); in generateCachedConversionInsns()
78 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedConversionInsns()
87 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
115 MInsn originalInsn = conversionInsns.get(mutation.conversionInsnIdx); in applyMutation()
123 MInsn newInsnThere = originalInsn.clone(); in applyMutation()
176 MInsn newInsnBack = originalInsn.clone(); in applyMutation()
193 private boolean isConversionInstruction(MInsn mInsn) { in isConversionInstruction()
DNonsenseStringPrinter.java21 import dexfuzz.program.MInsn;
78 MInsn insertionPoint = in generateMutation()
112 MInsn insertionPoint = mutatableCode.getInstructionAt(mutation.insertionIdx); in applyMutation()
121 MInsn constStringInsn = new MInsn(); in applyMutation()
127 MInsn streamLoadInsn = new MInsn(); in applyMutation()
133 MInsn invokeInsn = new MInsn(); in applyMutation()
DConstantValueChanger.java21 import dexfuzz.program.MInsn;
73 private List<MInsn> constInsns = null;
80 constInsns = new ArrayList<MInsn>(); in generateCachedConstInsns()
81 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedConstInsns()
90 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
106 MInsn constInsn = constInsns.get(constInsnIdx); in generateMutation()
134 MInsn constInsn = constInsns.get(mutation.constInsnIdx); in applyMutation()
DInstructionDeleter.java21 import dexfuzz.program.MInsn;
92 MInsn toBeDeleted = in applyMutation()
106 MInsn dataInsn = in applyMutation()
118 MInsn withDataInsn = null; in applyMutation()
119 for (MInsn mInsn : mutatableCode.getInstructions()) { in applyMutation()
DValuePrinter.java21 import dexfuzz.program.MInsn;
67 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
85 MInsn insnOutputToPrint = in generateMutation()
111 MInsn insnOutputToPrint = in applyMutation()
153 MInsn valueCopyInsn = new MInsn(); in applyMutation()
165 MInsn streamLoadInsn = new MInsn(); in applyMutation()
171 MInsn invokeInsn = new MInsn(); in applyMutation()
215 private OutputType getInstructionOutputType(MInsn mInsn) { in getInstructionOutputType()
DVRegChanger.java21 import dexfuzz.program.MInsn;
76 private List<MInsn> vregInsns = null;
83 vregInsns = new ArrayList<MInsn>(); in generateCachedVRegInsns()
84 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedVRegInsns()
98 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
113 MInsn vregInsn = vregInsns.get(vregInsnIdx); in generateMutation()
160 MInsn vregInsn = vregInsns.get(mutation.vregInsnIdx); in applyMutation()
DPoolIndexChanger.java21 import dexfuzz.program.MInsn;
74 private List<MInsn> poolIndexInsns = null;
81 poolIndexInsns = new ArrayList<MInsn>(); in generateCachedPoolIndexInsns()
82 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedPoolIndexInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
140 MInsn poolIndexInsn = poolIndexInsns.get(poolIndexInsnIdx); in generateMutation()
181 MInsn poolIndexInsn = poolIndexInsns.get(mutation.poolIndexInsnIdx); in applyMutation()
DInstructionDuplicator.java21 import dexfuzz.program.MInsn;
72 MInsn oldInsn = mutatableCode.getInstructionAt(insnIdx); in generateMutation()
94 MInsn oldInsn = mutatableCode.getInstructionAt(mutation.insnToDuplicateIdx); in applyMutation()
96 MInsn newInsn = oldInsn.clone(); in applyMutation()
DBranchShifter.java22 import dexfuzz.program.MInsn;
82 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedBranchInsns()
96 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
115 MInsn oldTargetInsn = branchInsn.target; in generateMutation()
158 MInsn newTargetInsn = mutatableCode.getInstructionAt(mutation.newTargetIdx); in applyMutation()
DFieldFlagChanger.java21 import dexfuzz.program.MInsn;
76 private List<MInsn> fieldInsns = null;
83 fieldInsns = new ArrayList<MInsn>(); in generateCachedFieldInsns()
85 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedFieldInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
155 private boolean isFileDefinedFieldInstruction(MInsn mInsn, MutatableCode mutatableCode) { in isFileDefinedFieldInstruction()
DSwitchBranchShifter.java21 import dexfuzz.program.MInsn;
85 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedSwitchInsns()
94 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
116 MInsn oldTargetInsn = switchInsn.targets.get(switchTargetIdx); in generateMutation()
160 MInsn newTargetInsn = in applyMutation()
DInstructionSwapper.java21 import dexfuzz.program.MInsn;
90 MInsn toBeSwapped = mutatableCode.getInstructionAt(swapInsnIdx); in generateMutation()
148 MInsn toBeSwapped = mutatableCode.getInstructionAt(mutation.swapInsnIdx); in applyMutation()
149 MInsn swappedWith = mutatableCode.getInstructionAt(mutation.swapWithInsnIdx); in applyMutation()
DNewMethodCaller.java21 import dexfuzz.program.MInsn;
112 MInsn insertionPoint = in generateMutation()
143 MInsn newInsn = new MInsn(); in applyMutation()
176 MInsn insertionPoint = in applyMutation()
DArithOpChanger.java21 import dexfuzz.program.MInsn;
75 private List<MInsn> arithmeticInsns = null;
82 arithmeticInsns = new ArrayList<MInsn>(); in generateCachedArithmeticInsns()
84 for (MInsn mInsn : mutatableCode.getInstructions()) { in generateCachedArithmeticInsns()
93 for (MInsn mInsn : mutatableCode.getInstructions()) { in canMutate()
109 MInsn randomInsn = arithmeticInsns.get(arithmeticInsnIdx); in generateMutation()
134 MInsn randomInsn = arithmeticInsns.get(mutation.arithmeticInsnIdx); in applyMutation()
150 private boolean isArithmeticOperation(MInsn mInsn) { in isArithmeticOperation()
158 private Opcode getLegalDifferentOpcode(MInsn mInsn) { in getLegalDifferentOpcode()
DRandomInstructionGenerator.java22 import dexfuzz.program.MInsn;
116 MInsn insertionPoint = in generateMutation()
216 MInsn newInsn = null; in applyMutation()
218 newInsn = new MInsn(); in applyMutation()
256 MInsn insertionPoint = in applyMutation()
268 MInsn exitInsn = newInsn.clone(); in applyMutation()
273 MInsn enterInsn = newInsn.clone(); in applyMutation()
DTryBlockShifter.java21 import dexfuzz.program.MInsn;
126 MInsn oldInsn = null; in generateMutation()
184 MInsn newInsn = in applyMutation()