/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/ |
H A D | Format22c.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 29 file.writeByte((byte) insn.info.value); 30 file.writeByte((byte) (insn.vregA | (insn.vregB << 4))); 31 file.writeUShort((short) insn.vregC); 56 public int getPoolIndex(Instruction insn) { argument 57 return (int) insn.vregC; 61 public void setPoolIndex(Instruction insn, int poolIndex) { argument 62 insn.vregC = poolIndex;
|
H A D | Format3rc.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 29 file.writeByte((byte) insn.info.value); 30 file.writeByte((byte) insn.vregA); 31 file.writeUShort((short) insn.vregB); 32 file.writeUShort((short) insn.vregC); 52 public int getPoolIndex(Instruction insn) { argument 53 return (int) insn.vregB; 57 public void setPoolIndex(Instruction insn, int poolIndex) { argument 58 insn.vregB = poolIndex;
|
H A D | ContainsPoolIndex.java | 36 public int getPoolIndex(Instruction insn); argument 38 public void setPoolIndex(Instruction insn, int poolIndex); argument
|
H A D | Format21c.java | 28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 29 file.writeByte((byte) insn.info.value); 30 file.writeByte((byte) insn.vregA); 31 file.writeUShort((short) insn.vregB); 56 public int getPoolIndex(Instruction insn) { argument 57 return (int) insn.vregB; 61 public void setPoolIndex(Instruction insn, int poolIndex) { argument 62 insn.vregB = poolIndex;
|
H A D | Format22cs.java | 27 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 30 //file.writeByte((byte) insn.info.value); 31 //file.writeByte((byte) (insn.vreg_a | (insn.vreg_b << 4))); 32 //file.writeUShort((short) insn.vreg_c); 57 public int getPoolIndex(Instruction insn) { argument 58 return (int) insn.vregC; 62 public void setPoolIndex(Instruction insn, int poolIndex) { argument 63 insn.vregC = poolIndex;
|
H A D | Format23x.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 27 file.writeByte((byte) insn.info.value); 28 file.writeByte((byte) insn.vregA); 29 file.writeByte((byte) insn.vregB); 30 file.writeByte((byte) insn.vregC);
|
H A D | Format3rmi.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 27 file.writeByte((byte) insn.info.value); 28 file.writeByte((byte) insn.vregA); 29 file.writeUShort((short) insn.vregB); 30 file.writeUShort((short) insn.vregC);
|
H A D | Format3rms.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 27 file.writeByte((byte) insn.info.value); 28 file.writeByte((byte) insn.vregA); 29 file.writeUShort((short) insn.vregB); 30 file.writeUShort((short) insn.vregC);
|
H A D | Format11x.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 27 file.writeByte((byte) insn.info.value); 28 file.writeByte((byte) insn.vregA);
|
H A D | Format32x.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 27 file.writeByte((byte) insn.info.value); 29 file.writeUShort((short) insn.vregA); 30 file.writeUShort((short) insn.vregB);
|
H A D | Format10x.java | 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument 27 file.writeByte((byte) insn.info.value);
|
H A D | AbstractFormat.java | 51 public abstract void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException; argument
|
H A D | Format00x.java | 31 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument
|
H A D | Format1.java | 31 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument
|
/art/compiler/dex/quick/ |
H A D | mir_to_lir-inl.h | 48 LIR* insn = static_cast<LIR*>(arena_->Alloc(sizeof(LIR), kArenaAllocLIR)); local 49 insn->dalvik_offset = dalvik_offset; 50 insn->opcode = opcode; 51 insn->operands[0] = op0; 52 insn->operands[1] = op1; 53 insn->operands[2] = op2; 54 insn->operands[3] = op3; 55 insn->operands[4] = op4; 56 insn->target = target; 57 SetupResourceMasks(insn); 76 LIR* insn = RawLIR(current_dalvik_offset_, opcode); local 86 LIR* insn = RawLIR(current_dalvik_offset_, opcode, dest); local 96 LIR* insn = RawLIR(current_dalvik_offset_, opcode, dest, src1); local 106 LIR* insn = RawLIR(current_dalvik_offset_, opcode, src, info); local 116 LIR* insn = RawLIR(current_dalvik_offset_, opcode, dest, src1, src2); local 126 LIR* insn = RawLIR(current_dalvik_offset_, opcode, dest, src1, src2, info); local 137 LIR* insn = RawLIR(current_dalvik_offset_, opcode, dest, src1, src2, info1, info2); local [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | CodeItem.java | 101 for (Instruction insn : insns) { 102 insn.write(file); 148 for (Instruction insn : insnsToIncrement) { 149 Opcode opcode = insn.info.opcode; 154 if (insn.vregB >= insertedIdx) { 155 insn.vregB++; 166 if (insn.vregB >= insertedIdx) { 167 insn.vregB++; 171 if (insn.vregC >= insertedIdx) { 172 insn [all...] |
/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
H A D | NonsenseStringPrinter.java | 83 if (insertionPoint.insn.justRaw) { 122 constStringInsn.insn = new Instruction(); 123 constStringInsn.insn.info = Instruction.getOpcodeInfo(Opcode.CONST_STRING); 124 constStringInsn.insn.vregB = nonsenseStringIdx; 125 constStringInsn.insn.vregA = stringRegister; 128 streamLoadInsn.insn = new Instruction(); 129 streamLoadInsn.insn.info = Instruction.getOpcodeInfo(Opcode.SGET_OBJECT); 130 streamLoadInsn.insn.vregB = outFieldIdx; 131 streamLoadInsn.insn.vregA = streamRegister; 134 invokeInsn.insn [all...] |
H A D | FieldFlagChanger.java | 110 Instruction insn = fieldInsns.get(fieldInsnIdx).insn; 111 ContainsPoolIndex containsPoolIndex = (ContainsPoolIndex) insn.info.format; 112 int fieldIdx = containsPoolIndex.getPoolIndex(insn); 136 Instruction insn = fieldInsns.get(mutation.fieldInsnIdx).insn; 137 ContainsPoolIndex containsPoolIndex = (ContainsPoolIndex) insn.info.format; 138 int fieldIdx = containsPoolIndex.getPoolIndex(insn); 156 Opcode opcode = mInsn.insn.info.opcode; 158 Instruction insn [all...] |
H A D | ConstantValueChanger.java | 82 if (mInsn.insn.info.format instanceof ContainsConst) { 91 if (mInsn.insn.info.format instanceof ContainsConst) { 109 long oldConstant = ((ContainsConst)constInsn.insn.info.format).getConst(constInsn.insn); 116 % ((ContainsConst)constInsn.insn.info.format).getConstRange(); 136 long oldConstant = ((ContainsConst)constInsn.insn.info.format).getConst(constInsn.insn); 144 ((ContainsConst)constInsn.insn.info.format).setConst(constInsn.insn, mutation.newConstant);
|
H A D | ValuePrinter.java | 90 if (insnOutputToPrint.insn.justRaw) { 154 valueCopyInsn.insn = new Instruction(); 156 valueCopyInsn.insn.info = Instruction.getOpcodeInfo(Opcode.MOVE_OBJECT_16); 158 valueCopyInsn.insn.info = Instruction.getOpcodeInfo(Opcode.MOVE_WIDE_16); 160 valueCopyInsn.insn.info = Instruction.getOpcodeInfo(Opcode.MOVE_16); 162 valueCopyInsn.insn.vregB = insnOutputToPrint.insn.vregA; 163 valueCopyInsn.insn.vregA = valueRegister; 166 streamLoadInsn.insn = new Instruction(); 167 streamLoadInsn.insn [all...] |
H A D | VRegChanger.java | 85 if (mInsn.insn.info.format instanceof ContainsVRegs) { 99 if (mInsn.insn.info.format instanceof ContainsVRegs) { 116 int numVregs = ((ContainsVRegs)vregInsn.insn.info.format).getVRegCount(); 126 oldVregValue = (int) vregInsn.insn.vregA; 129 oldVregValue = (int) vregInsn.insn.vregB; 132 oldVregValue = (int) vregInsn.insn.vregC; 170 oldVregValue = (int) vregInsn.insn.vregA; 171 vregInsn.insn.vregA = (long) mutation.newVregValue; 174 oldVregValue = (int) vregInsn.insn.vregB; 175 vregInsn.insn [all...] |
H A D | PoolIndexChanger.java | 83 if (mInsn.insn.info.format instanceof ContainsPoolIndex) { 95 if (mInsn.insn.info.format instanceof ContainsPoolIndex) { 98 (ContainsPoolIndex)mInsn.insn.info.format; 101 containsPoolIndex.getPoolIndexKind(mInsn.insn.info); 145 (ContainsPoolIndex)poolIndexInsn.insn.info.format; 148 oldPoolIndex = containsPoolIndex.getPoolIndex(poolIndexInsn.insn); 153 containsPoolIndex.getPoolIndexKind(poolIndexInsn.insn.info); 184 (ContainsPoolIndex) poolIndexInsn.insn.info.format; 186 int oldPoolIndex = containsPoolIndex.getPoolIndex(poolIndexInsn.insn); 194 containsPoolIndex.setPoolIndex(poolIndexInsn.insn, mutatio [all...] |
H A D | NewMethodCaller.java | 117 if (insertionPoint.insn.justRaw) { 144 newInsn.insn = new Instruction(); 148 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_VIRTUAL); 151 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_DIRECT); 154 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_SUPER); 157 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_STATIC); 160 newInsn.insn.info = Instruction.getOpcodeInfo(Opcode.INVOKE_INTERFACE); 171 newInsn.insn.vregB = methodIdx; 172 newInsn.insn.invokeFormatInfo = new InvokeFormatInfo();
|
/art/tools/dexfuzz/src/dexfuzz/program/ |
H A D | MSwitchInsn.java | 40 newInsn.insn = insn.clone();
|
H A D | CodeTranslator.java | 79 for (Instruction insn : inputInsns) { 82 if (isInstructionSwitch(insn)) { 84 } else if (isInstructionBranch(insn)) { 86 } else if (isInstructionFillArrayData(insn)) { 92 mInsn.insn = insn; 104 loc += mInsn.insn.getSize(); 112 ContainsTarget containsTarget = (ContainsTarget) mInsn.insn.info.format; 113 int targetLoc = mInsn.location + (int) containsTarget.getTarget(mInsn.insn); 116 Log.errorAndQuit("Bad offset calculation in data-target insn"); 569 isInstructionBranch(Instruction insn) argument 581 isInstructionSwitch(Instruction insn) argument 589 isInstructionFillArrayData(Instruction insn) argument [all...] |