/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/ |
D | Format35c.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 29 file.writeByte((byte) insn.info.value); in writeToFile() 30 file.writeByte((byte) (insn.invokeFormatInfo.vregG | (insn.vregA << 4))); in writeToFile() 31 file.writeUShort((short) insn.vregB); in writeToFile() 32 file.writeByte((byte) ((insn.invokeFormatInfo.vregD << 4) | insn.vregC)); in writeToFile() 33 file.writeByte((byte) ((insn.invokeFormatInfo.vregF << 4) in writeToFile() 34 | insn.invokeFormatInfo.vregE)); in writeToFile() 59 public int getPoolIndex(Instruction insn) { in getPoolIndex() argument 60 return (int) insn.vregB; in getPoolIndex() 64 public void setPoolIndex(Instruction insn, int poolIndex) { in setPoolIndex() argument [all …]
|
D | Format51l.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeUShort((short) (insn.vregB & 0xffff)); in writeToFile() 30 file.writeUShort((short) ((insn.vregB & 0xffff0000) >> 16)); in writeToFile() 31 file.writeUShort((short) ((insn.vregB & 0xffff00000000L) >> 32)); in writeToFile() 32 file.writeUShort((short) ((insn.vregB & 0xffff000000000000L) >> 48)); in writeToFile() 52 public long getConst(Instruction insn) { in getConst() argument 53 return insn.vregB; in getConst() 57 public void setConst(Instruction insn, long constant) { in setConst() argument [all …]
|
D | Format35mi.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) (insn.invokeFormatInfo.vregG | (insn.vregA << 4))); in writeToFile() 29 file.writeUShort((short) insn.vregB); in writeToFile() 30 file.writeByte((byte) ((insn.invokeFormatInfo.vregD << 4) | insn.vregC)); in writeToFile() 31 file.writeByte((byte) ((insn.invokeFormatInfo.vregF << 4) in writeToFile() 32 | insn.invokeFormatInfo.vregE)); in writeToFile()
|
D | Format22t.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) (insn.vregA | (insn.vregB << 4))); in writeToFile() 29 file.writeUShort((short) insn.vregC); in writeToFile() 49 public long getTarget(Instruction insn) { in getTarget() argument 50 return insn.vregC; in getTarget() 54 public void setTarget(Instruction insn, long target) { in setTarget() argument 55 insn.vregC = target; in setTarget()
|
D | Format35ms.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) (insn.invokeFormatInfo.vregG | (insn.vregA << 4))); in writeToFile() 29 file.writeUShort((short) insn.vregB); in writeToFile() 30 file.writeByte((byte) ((insn.invokeFormatInfo.vregD << 4) | insn.vregC)); in writeToFile() 31 file.writeByte((byte) ((insn.invokeFormatInfo.vregF << 4) in writeToFile() 32 | insn.invokeFormatInfo.vregE)); in writeToFile()
|
D | Format22b.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeByte((byte) insn.vregB); in writeToFile() 30 file.writeByte((byte) insn.vregC); in writeToFile() 50 public long getConst(Instruction insn) { in getConst() argument 51 return insn.vregC; in getConst() 55 public void setConst(Instruction insn, long constant) { in setConst() argument 56 insn.vregC = constant; in setConst()
|
D | Format22s.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) (insn.vregA | (insn.vregB << 4))); in writeToFile() 29 file.writeUShort((short) insn.vregC); in writeToFile() 49 public long getConst(Instruction insn) { in getConst() argument 50 return insn.vregC; in getConst() 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregC = constant; in setConst()
|
D | Format3rc.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 29 file.writeByte((byte) insn.info.value); in writeToFile() 30 file.writeByte((byte) insn.vregA); in writeToFile() 31 file.writeUShort((short) insn.vregB); in writeToFile() 32 file.writeUShort((short) insn.vregC); in writeToFile() 52 public int getPoolIndex(Instruction insn) { in getPoolIndex() argument 53 return (int) insn.vregB; in getPoolIndex() 57 public void setPoolIndex(Instruction insn, int poolIndex) { in setPoolIndex() argument 58 insn.vregB = poolIndex; in setPoolIndex()
|
D | Format11n.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) (insn.vregA | (insn.vregB << 4))); in writeToFile() 48 public long getConst(Instruction insn) { in getConst() argument 49 return insn.vregB; in getConst() 53 public void setConst(Instruction insn, long constant) { in setConst() argument 54 insn.vregB = constant; in setConst()
|
D | Format31t.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeUInt((int) insn.vregB); in writeToFile() 49 public long getTarget(Instruction insn) { in getTarget() argument 50 return insn.vregB; in getTarget() 54 public void setTarget(Instruction insn, long target) { in setTarget() argument 55 insn.vregB = target; in setTarget()
|
D | Format21t.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeUShort((short) insn.vregB); in writeToFile() 49 public long getTarget(Instruction insn) { in getTarget() argument 50 return insn.vregB; in getTarget() 54 public void setTarget(Instruction insn, long target) { in setTarget() argument 55 insn.vregB = target; in setTarget()
|
D | Format21s.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeUShort((short) insn.vregB); in writeToFile() 49 public long getConst(Instruction insn) { in getConst() argument 50 return insn.vregB; in getConst() 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregB = constant; in setConst()
|
D | Format21h.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeUShort((short) insn.vregB); in writeToFile() 49 public long getConst(Instruction insn) { in getConst() argument 50 return insn.vregB; in getConst() 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregB = constant; in setConst()
|
D | Format31i.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 29 file.writeUInt((int) insn.vregB); in writeToFile() 49 public long getConst(Instruction insn) { in getConst() argument 50 return insn.vregB; in getConst() 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregB = constant; in setConst()
|
D | Format22c.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 29 file.writeByte((byte) insn.info.value); in writeToFile() 30 file.writeByte((byte) (insn.vregA | (insn.vregB << 4))); in writeToFile() 31 file.writeUShort((short) insn.vregC); in writeToFile() 56 public int getPoolIndex(Instruction insn) { in getPoolIndex() argument 57 return (int) insn.vregC; in getPoolIndex() 61 public void setPoolIndex(Instruction insn, int poolIndex) { in setPoolIndex() argument 62 insn.vregC = poolIndex; in setPoolIndex()
|
D | Format31c.java | 27 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 28 file.writeByte((byte) insn.info.value); in writeToFile() 29 file.writeByte((byte) insn.vregA); in writeToFile() 30 file.writeUInt((int) insn.vregB); in writeToFile() 55 public int getPoolIndex(Instruction insn) { in getPoolIndex() argument 56 return (int) insn.vregB; in getPoolIndex() 60 public void setPoolIndex(Instruction insn, int poolIndex) { in setPoolIndex() argument 61 insn.vregB = poolIndex; in setPoolIndex()
|
D | Format10t.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 28 file.writeByte((byte) insn.vregA); in writeToFile() 48 public long getTarget(Instruction insn) { in getTarget() argument 49 return insn.vregA; in getTarget() 53 public void setTarget(Instruction insn, long target) { in setTarget() argument 54 insn.vregA = target; in setTarget()
|
D | Format20t.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 29 file.writeUShort((short) insn.vregA); in writeToFile() 49 public long getTarget(Instruction insn) { in getTarget() argument 50 return insn.vregA; in getTarget() 54 public void setTarget(Instruction insn, long target) { in setTarget() argument 55 insn.vregA = target; in setTarget()
|
D | Format30t.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 27 file.writeByte((byte) insn.info.value); in writeToFile() 29 file.writeUInt((int) insn.vregA); in writeToFile() 49 public long getTarget(Instruction insn) { in getTarget() argument 50 return insn.vregA; in getTarget() 54 public void setTarget(Instruction insn, long target) { in setTarget() argument 55 insn.vregA = target; in setTarget()
|
D | Format21c.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument 29 file.writeByte((byte) insn.info.value); in writeToFile() 30 file.writeByte((byte) insn.vregA); in writeToFile() 31 file.writeUShort((short) insn.vregB); in writeToFile() 56 public int getPoolIndex(Instruction insn) { in getPoolIndex() argument 57 return (int) insn.vregB; in getPoolIndex() 61 public void setPoolIndex(Instruction insn, int poolIndex) { in setPoolIndex() argument 62 insn.vregB = poolIndex; in setPoolIndex()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | CodeItem.java | 101 for (Instruction insn : insns) { in write() 102 insn.write(file); in write() 148 for (Instruction insn : insnsToIncrement) { in incrementIndex() 149 Opcode opcode = insn.info.opcode; in incrementIndex() 154 if (insn.vregB >= insertedIdx) { in incrementIndex() 155 insn.vregB++; in incrementIndex() 166 if (insn.vregB >= insertedIdx) { in incrementIndex() 167 insn.vregB++; in incrementIndex() 171 if (insn.vregC >= insertedIdx) { in incrementIndex() 172 insn.vregC++; in incrementIndex() [all …]
|
/art/dex2oat/linker/riscv64/ |
D | relative_patcher_riscv64.cc | 69 uint32_t insn = GetInsn(code, literal_offset); in PatchPcRelativeReference() local 74 DCHECK_EQ((insn & 0xfffff07fu), 0x12345017u) in PatchPcRelativeReference() 75 << literal_offset << ", " << pc_insn_offset << ", 0x" << std::hex << insn; in PatchPcRelativeReference() 76 insn = PatchAuipc(insn, disp); in PatchPcRelativeReference() 78 DCHECK_EQ((insn & 0xfff00000u), 0x67800000u); in PatchPcRelativeReference() 79 CHECK((insn & 0x0000707fu) == 0x00000013u || // ADD in PatchPcRelativeReference() 80 (insn & 0x0000707fu) == 0x00006003u || // LWU in PatchPcRelativeReference() 81 (insn & 0x0000707fu) == 0x00003003u) // LD in PatchPcRelativeReference() 82 << "insn: 0x" << std::hex << insn << ", type: " << patch.GetType(); in PatchPcRelativeReference() 85 0x00000017 | (((insn >> 15) & 0x1fu) << 7)); in PatchPcRelativeReference() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
D | NewInstanceChanger.java | 90 if (mInsn.insn.info.opcode == Opcode.NEW_INSTANCE) { in generateCachedNewInstanceInsns() 105 if (mInsn.insn.info.opcode == Opcode.NEW_INSTANCE) { in canMutate() 119 int oldTypeIdx = (int) newInstanceInsn.insn.vregB; in generateMutation() 147 ContainsPoolIndex poolIndex = ((ContainsPoolIndex)newInstanceInsn.insn.info.format); in applyMutation() 149 poolIndex.setPoolIndex(newInstanceInsn.insn, mutation.newInstanceTypeIdx); in applyMutation() 179 MInsn insn = mutatableCode.getInstructionAt(foundInsnIdx + 1); in changeInvokeDirect() local 180 if (isInvokeInst(insn)) { in changeInvokeDirect() 181 ContainsPoolIndex poolIndex =((ContainsPoolIndex)insn.insn.info.format); in changeInvokeDirect() 182 long oldMethodIdx = poolIndex.getPoolIndex(insn.insn); in changeInvokeDirect() 193 poolIndex.setPoolIndex(insn.insn, mutation.newInstanceTypeIdx); in changeInvokeDirect() [all …]
|
D | NonsenseStringPrinter.java | 83 if (insertionPoint.insn.justRaw) { in generateMutation() 122 constStringInsn.insn = new Instruction(); in applyMutation() 123 constStringInsn.insn.info = Instruction.getOpcodeInfo(Opcode.CONST_STRING); in applyMutation() 124 constStringInsn.insn.vregB = nonsenseStringIdx; in applyMutation() 125 constStringInsn.insn.vregA = stringRegister; in applyMutation() 128 streamLoadInsn.insn = new Instruction(); in applyMutation() 129 streamLoadInsn.insn.info = Instruction.getOpcodeInfo(Opcode.SGET_OBJECT); in applyMutation() 130 streamLoadInsn.insn.vregB = outFieldIdx; in applyMutation() 131 streamLoadInsn.insn.vregA = streamRegister; in applyMutation() 134 invokeInsn.insn = new Instruction(); in applyMutation() [all …]
|
D | FieldFlagChanger.java | 110 Instruction insn = fieldInsns.get(fieldInsnIdx).insn; in generateMutation() local 111 ContainsPoolIndex containsPoolIndex = (ContainsPoolIndex) insn.info.format; in generateMutation() 112 int fieldIdx = containsPoolIndex.getPoolIndex(insn); in generateMutation() 136 Instruction insn = fieldInsns.get(mutation.fieldInsnIdx).insn; in applyMutation() local 137 ContainsPoolIndex containsPoolIndex = (ContainsPoolIndex) insn.info.format; in applyMutation() 138 int fieldIdx = containsPoolIndex.getPoolIndex(insn); in applyMutation() 156 Opcode opcode = mInsn.insn.info.opcode; in isFileDefinedFieldInstruction() 158 Instruction insn = mInsn.insn; in isFileDefinedFieldInstruction() local 159 ContainsPoolIndex containsPoolIndex = (ContainsPoolIndex) insn.info.format; in isFileDefinedFieldInstruction() 160 int fieldIdx = containsPoolIndex.getPoolIndex(insn); in isFileDefinedFieldInstruction()
|