Home
last modified time | relevance | path

Searched refs:insn (Results 1 – 25 of 83) sorted by relevance

1234

/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
DFormat35c.java28 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 …]
DFormat51l.java26 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 …]
DFormat35ms.java26 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()
DFormat22t.java26 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()
DFormat35mi.java26 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()
DFormat22b.java26 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()
DFormat22s.java26 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()
DFormat3rc.java28 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()
DFormat31t.java26 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()
DFormat11n.java26 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()
DFormat21t.java26 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()
DFormat31i.java26 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()
DFormat21s.java26 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()
DFormat21h.java26 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()
DFormat22c.java28 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()
DFormat31c.java27 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()
DFormat20t.java26 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()
DFormat10t.java26 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()
DFormat30t.java26 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()
DFormat21c.java28 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/
DCodeItem.java101 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/tools/dexfuzz/src/dexfuzz/program/mutators/
DNonsenseStringPrinter.java83 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 …]
DNewInstanceChanger.java90 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 …]
DFieldFlagChanger.java110 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()
DValuePrinter.java90 if (insnOutputToPrint.insn.justRaw) { in generateMutation()
154 valueCopyInsn.insn = new Instruction(); in applyMutation()
156 valueCopyInsn.insn.info = Instruction.getOpcodeInfo(Opcode.MOVE_OBJECT_16); in applyMutation()
158 valueCopyInsn.insn.info = Instruction.getOpcodeInfo(Opcode.MOVE_WIDE_16); in applyMutation()
160 valueCopyInsn.insn.info = Instruction.getOpcodeInfo(Opcode.MOVE_16); in applyMutation()
162 valueCopyInsn.insn.vregB = insnOutputToPrint.insn.vregA; in applyMutation()
163 valueCopyInsn.insn.vregA = valueRegister; in applyMutation()
166 streamLoadInsn.insn = new Instruction(); in applyMutation()
167 streamLoadInsn.insn.info = Instruction.getOpcodeInfo(Opcode.SGET_OBJECT); in applyMutation()
168 streamLoadInsn.insn.vregB = outFieldIdx; in applyMutation()
[all …]

1234