Home
last modified time | relevance | path

Searched refs:newInsn (Results 1 – 13 of 13) sorted by relevance

/art/tools/dexfuzz/src/dexfuzz/program/
DMSwitchInsn.java39 MSwitchInsn newInsn = new MSwitchInsn(); in clone() local
40 newInsn.insn = insn.clone(); in clone()
41 newInsn.dataTarget = dataTarget; in clone()
42 newInsn.packed = packed; in clone()
44 newInsn.targets.add(target); in clone()
46 newInsn.keys = new int[keys.length]; in clone()
47 System.arraycopy(keys, 0, newInsn.keys, 0, keys.length); in clone()
48 return newInsn; in clone()
DMInsn.java47 MInsn newInsn = new MInsn(); in clone() local
48 newInsn.insn = insn.clone(); in clone()
50 newInsn.location = location; in clone()
51 newInsn.locationUpdated = locationUpdated; in clone()
52 return newInsn; in clone()
DMInsnWithData.java32 MInsnWithData newInsn = new MInsnWithData(); in clone() local
33 newInsn.insn = insn.clone(); in clone()
34 newInsn.dataTarget = dataTarget; in clone()
35 return newInsn; in clone()
DMBranchInsn.java32 MBranchInsn newInsn = new MBranchInsn(); in clone() local
33 newInsn.insn = insn.clone(); in clone()
34 newInsn.target = target; in clone()
35 return newInsn; in clone()
DCodeTranslator.java347 MInsn newInsn = second.startInsn; in updateTryBlocks() local
348 int ptr = mutatableCode.getInstructionIndex(newInsn); in updateTryBlocks()
349 while (first.endInsn.location > newInsn.location) { in updateTryBlocks()
351 newInsn = mutatableCode.getInstructionAt(ptr); in updateTryBlocks()
353 second.startInsn = newInsn; in updateTryBlocks()
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DRandomInstructionGenerator.java216 MInsn newInsn = null; in applyMutation() local
218 newInsn = new MInsn(); in applyMutation()
220 newInsn = new MBranchInsn(); in applyMutation()
222 newInsn.insn = new Instruction(); in applyMutation()
223 newInsn.insn.info = Instruction.getOpcodeInfo(mutation.newOpcode); in applyMutation()
224 AbstractFormat fmt = newInsn.insn.info.format; in applyMutation()
228 containsConst.setConst(newInsn.insn, mutation.constValue); in applyMutation()
232 containsPoolIndex.setPoolIndex(newInsn.insn, mutation.poolIndexValue); in applyMutation()
237 newInsn.insn.vregC = mutation.vregC; in applyMutation()
240 newInsn.insn.vregB = mutation.vregB; in applyMutation()
[all …]
DNewMethodCaller.java143 MInsn newInsn = new MInsn(); in applyMutation() local
144 newInsn.insn = new Instruction(); in applyMutation()
148 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_VIRTUAL); in applyMutation()
151 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_DIRECT); in applyMutation()
154 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_SUPER); in applyMutation()
157 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_STATIC); in applyMutation()
160 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_INTERFACE); in applyMutation()
171 newInsn.insn.vregB = methodIdx; in applyMutation()
172 newInsn.insn.invokeFormatInfo = new InvokeFormatInfo(); in applyMutation()
184 mutatableCode.insertInstructionAt(newInsn, mutation.insertionIdx); in applyMutation()
DRegisterClobber.java89 MInsn newInsn = new MInsn(); in applyMutation() local
90 newInsn.insn = new Instruction(); in applyMutation()
91 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.CONST_16); in applyMutation()
92 newInsn.insn.vregA = i; in applyMutation()
94 newInsn.insn.vregB = 0; in applyMutation()
95 mutatableCode.insertInstructionAt(newInsn, mutation.regClobberIdx + i); in applyMutation()
DTryBlockShifter.java184 MInsn newInsn = in applyMutation() local
189 tryBlock.startInsn = newInsn; in applyMutation()
191 + " to be at " + newInsn); in applyMutation()
193 tryBlock.endInsn = newInsn; in applyMutation()
195 + " to be at " + newInsn); in applyMutation()
197 tryBlock.catchAllHandler = newInsn; in applyMutation()
199 + " to be at " + newInsn); in applyMutation()
202 tryBlock.handlers.set(mutation.shiftingHandlerIdx, newInsn); in applyMutation()
204 + " of try block #" + mutation.tryIdx + " to be at " + newInsn); in applyMutation()
DNewArrayLengthChanger.java129 MInsn newInsn = new MInsn(); in applyMutation() local
130 newInsn.insn = new Instruction(); in applyMutation()
131 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.CONST_16); in applyMutation()
134 newInsn.insn.vregA = (int) newArrayInsn.insn.vregB; in applyMutation()
136 newInsn.insn.vregB = rng.nextInt(100); in applyMutation()
137 mutatableCode.insertInstructionAt(newInsn, newArrayInsnIdx); in applyMutation()
138 Log.info("Changed the length of the array to " + newInsn.insn.vregB); in applyMutation()
DInstructionDuplicator.java96 MInsn newInsn = oldInsn.clone(); in applyMutation() local
102 mutatableCode.insertInstructionAt(newInsn, mutation.insnToDuplicateIdx); in applyMutation()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DInstruction.java89 Instruction newInsn = new Instruction(); in clone() local
91 if (newInsn.rawBytes != null) { in clone()
92 newInsn.rawBytes = new byte[rawBytes.length]; in clone()
94 newInsn.rawBytes[i] = rawBytes[i]; in clone()
97 newInsn.justRaw = justRaw; in clone()
98 newInsn.rawType = rawType; in clone()
99 newInsn.rawSize = rawSize; in clone()
101 newInsn.vregA = vregA; in clone()
102 newInsn.vregB = vregB; in clone()
103 newInsn.vregC = vregC; in clone()
[all …]
DCodeItem.java80 Instruction newInsn = new Instruction(); in populateInstructionList() local
81 newInsn.read(file); in populateInstructionList()
82 insns.add(newInsn); in populateInstructionList()
83 finger += (2 * newInsn.getSize()); in populateInstructionList()