Searched refs:insn (Results 26 - 50 of 69) sorted by relevance

123

/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
H A DFormat22c.java28 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 DFormat3rc.java28 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 DContainsPoolIndex.java36 public int getPoolIndex(Instruction insn); argument
38 public void setPoolIndex(Instruction insn, int poolIndex); argument
H A DFormat21c.java28 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 DFormat22cs.java27 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 DFormat23x.java26 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 DFormat3rmi.java26 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 DFormat3rms.java26 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 DFormat11x.java26 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 DFormat32x.java26 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 DFormat10x.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument
27 file.writeByte((byte) insn.info.value);
H A DAbstractFormat.java51 public abstract void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException; argument
H A DFormat00x.java31 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument
H A DFormat1.java31 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { argument
/art/compiler/dex/quick/
H A Dmir_to_lir-inl.h48 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 DCodeItem.java101 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 DNonsenseStringPrinter.java83 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 DFieldFlagChanger.java110 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 DConstantValueChanger.java82 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 DValuePrinter.java90 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 DVRegChanger.java85 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 DPoolIndexChanger.java83 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 DNewMethodCaller.java117 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 DMSwitchInsn.java40 newInsn.insn = insn.clone();
H A DCodeTranslator.java79 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...]

Completed in 2046 milliseconds

123