/dalvik/dx/src/com/android/dx/rop/code/ |
D | BasicBlock.java | 32 private final InsnList insns; field in BasicBlock 59 public BasicBlock(int label, InsnList insns, IntList successors, in BasicBlock() argument 66 insns.throwIfMutable(); in BasicBlock() 72 int sz = insns.size(); in BasicBlock() 79 Rop one = insns.get(i).getOpcode(); in BasicBlock() 86 Insn lastInsn = insns.get(sz - 1); in BasicBlock() 110 this.insns = insns; in BasicBlock() 152 return insns; in getInsns() 201 return insns.get(0); in getFirstInsn() 211 return insns.getLast(); in getLastInsn() [all …]
|
D | LocalVariableExtractor.java | 94 InsnList insns = block.getInsns(); in processBlock() local 95 int insnSz = insns.size(); in processBlock() 105 (insns.getLast().getResult() != null); in processBlock() 121 Insn insn = insns.get(i); in processBlock()
|
D | BasicBlockList.java | 134 InsnList insns = one.getInsns(); in getEffectiveInstructionCount() local 135 int insnsSz = insns.size(); in getEffectiveInstructionCount() 138 Insn insn = insns.get(j); in getEffectiveInstructionCount() 179 InsnList insns = one.getInsns(); in forEachInsn() local 180 insns.forEach(visitor); in forEachInsn()
|
/dalvik/vm/analysis/ |
D | VerifySubs.c | 41 const u2* insns = meth->insns; in dvmComputeCodeWidths() local 55 if (*insns == kPackedSwitchSignature) { in dvmComputeCodeWidths() 56 width = 4 + insns[1] * 2; in dvmComputeCodeWidths() 57 } else if (*insns == kSparseSwitchSignature) { in dvmComputeCodeWidths() 58 width = 2 + insns[1] * 4; in dvmComputeCodeWidths() 59 } else if (*insns == kArrayDataSignature) { in dvmComputeCodeWidths() 60 u4 size = insns[2] | (((u4)insns[3]) << 16); in dvmComputeCodeWidths() 61 width = 4 + (insns[1] * size + 1) / 2; in dvmComputeCodeWidths() 63 int instr = *insns & 0xff; in dvmComputeCodeWidths() 88 insns += width; in dvmComputeCodeWidths() [all …]
|
D | DexOptimize.c | 65 static void rewriteInstField(Method* method, u2* insns, OpCode newOpc); 66 static bool rewriteVirtualInvoke(Method* method, u2* insns, OpCode newOpc); 67 static bool rewriteDirectInvoke(Method* method, u2* insns); 68 static bool rewriteExecuteInline(Method* method, u2* insns, 1517 u2* insns; in optimizeMethod() local 1523 insns = (u2*) method->insns; in optimizeMethod() 1524 assert(insns != NULL); in optimizeMethod() 1530 inst = *insns & 0xff; in optimizeMethod() 1538 rewriteInstField(method, insns, OP_IGET_QUICK); in optimizeMethod() 1541 rewriteInstField(method, insns, OP_IGET_WIDE_QUICK); in optimizeMethod() [all …]
|
D | DexVerify.c | 274 const u2* insns = meth->insns + curOffset; in checkArrayData() local 282 offsetToArrayData = insns[1] | (((s4)insns[2]) << 16); in checkArrayData() 293 arrayData = insns + offsetToArrayData; in checkArrayData() 329 dexDecodeInstruction(gDvm.instrFormat, meth->insns + insnIdx, pDecInsn); in decodeInstruction() 536 const u2* insns = meth->insns; in verifyInstructions() local 552 OpCode opcode = *insns & 0xff; in verifyInstructions() 728 insns += width; in verifyInstructions()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | OutputFinisher.java | 46 private ArrayList<DalvInsn> insns; field in OutputFinisher 71 this.insns = new ArrayList<DalvInsn>(initialCapacity); in OutputFinisher() 146 for (DalvInsn insn : insns) { in getAllConstants() 214 insns.add(insn); in add() 225 insns.add(at, insn); in insert() 261 int size = insns.size(); in reverseBranch() 266 targetInsn = (TargetInsn) insns.get(index); in reverseBranch() 279 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget)); in reverseBranch() 290 for (DalvInsn insn : insns) { in assignIndices() 353 return DalvInsnList.makeImmutable(insns, in finishProcessingAndGetList() [all …]
|
D | DalvCode.java | 69 private DalvInsnList insns; field in DalvCode 97 this.insns = null; in DalvCode() 104 if (insns != null) { in finishProcessingIfNecessary() 108 insns = unprocessedInsns.finishProcessingAndGetList(); in finishProcessingIfNecessary() 109 positions = PositionList.make(insns, positionInfo); in finishProcessingIfNecessary() 110 locals = LocalList.make(insns); in finishProcessingIfNecessary() 186 return insns; in getInsns()
|
D | HighRegisterPrefix.java | 34 private SimpleInsn[] insns; field in HighRegisterPrefix 51 insns = null; in HighRegisterPrefix() 61 for (SimpleInsn insn : insns) { in codeSize() 73 for (SimpleInsn insn : insns) { in writeTo() 83 if (insns != null) { in calculateInsnsIfNecessary() 90 insns = new SimpleInsn[sz]; in calculateInsnsIfNecessary() 94 insns[i] = moveInsnFor(src, outAt); in calculateInsnsIfNecessary()
|
D | PositionList.java | 58 public static PositionList make(DalvInsnList insns, int howMuch) { in make() argument 75 int sz = insns.size(); in make() 81 DalvInsn insn = insns.get(i); in make()
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | SsaBasicBlock.java | 54 private ArrayList<SsaInsn> insns; field in SsaBasicBlock 121 this.insns = new ArrayList<SsaInsn>(); in SsaBasicBlock() 148 result.insns.ensureCapacity(ropInsns.size()); in newFromRop() 151 result.insns.add(new NormalSsaInsn (ropInsns.get(i), result)); in newFromRop() 201 insns.add(0, new PhiInsn(reg, this)); in addPhiInsnForReg() 212 insns.add(0, new PhiInsn(resultSpec, this)); in addPhiInsnForReg() 223 insns.add(getCountPhiInsns(), newInsn); in addInsnToHead() 238 SsaInsn oldInsn = insns.get(insns.size() - 1); in replaceLastInsn() 241 insns.set(insns.size() - 1, newInsn); in replaceLastInsn() 253 int sz = insns.size(); in forEachPhiInsn() [all …]
|
D | LocalVariableExtractor.java | 107 List<SsaInsn> insns = block.getInsns(); in processBlock() local 108 int insnSz = insns.size(); in processBlock() 122 SsaInsn lastInsn = insns.get(insnSz - 1); in processBlock() 142 SsaInsn insn = insns.get(i); in processBlock()
|
D | LiteralOpUpgrader.java | 154 List<SsaInsn> insns = insn.getBlock().getInsns(); in replacePlainInsn() local 157 insns.set(insns.lastIndexOf(insn), newInsn); in replacePlainInsn()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | Ropper.java | 682 ArrayList<Insn> insns = machine.getInsns(); in processBlock() local 683 int insnSz = insns.size(); in processBlock() 848 Insn insn = insns.get(i); in processBlock() 851 insns.set(i, insn); in processBlock() 878 Insn extraInsn = insns.get(--insnSz); in processBlock() 911 Insn lastInsn = (insnSz == 0) ? null : insns.get(insnSz - 1); in processBlock() 925 insns.add(new PlainInsn(Rops.GOTO, pos, null, in processBlock() 937 il.set(i, insns.get(i)); in processBlock() 1005 InsnList insns = new InsnList(sz + 1); in addSetupBlocks() local 1018 insns.set(i, insn); in addSetupBlocks() [all …]
|
D | RopperMachine.java | 77 private final ArrayList<Insn> insns; field in RopperMachine 142 this.insns = new ArrayList<Insn>(25); in RopperMachine() 160 return insns; in getInsns() 190 insns.clear(); in startBlock() 338 insns.add(new PlainInsn(Rops.opMove(type), pos, scratch, src)); in run() 347 insns.add(new PlainInsn(Rops.opMove(type), pos, in run() 377 insns.add(insn); in run() 382 insns.add(insn); in run() 424 insns.add(insn); in run() 429 insns.add(insn); in run() [all …]
|
/dalvik/vm/mterp/c/ |
D | OP_FILL_ARRAY_DATA.c | 13 if (arrayData < curMethod->insns || in HANDLE_OPCODE() 14 arrayData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod)) in HANDLE_OPCODE()
|
D | OP_PACKED_SWITCH.c | 12 if (switchData < curMethod->insns || in HANDLE_OPCODE() 13 switchData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod)) in HANDLE_OPCODE()
|
D | OP_SPARSE_SWITCH.c | 12 if (switchData < curMethod->insns || in HANDLE_OPCODE() 13 switchData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod)) in HANDLE_OPCODE()
|
/dalvik/vm/mterp/portable/ |
D | debug.c | 106 pCtrl->pAddressSet, pc - method->insns)) { in updateDebugger() 129 pc - method->insns)) { in updateDebugger() 193 dvmDbgPostLocationEvent(method, pc - method->insns, thisPtr, in updateDebugger() 210 assert(pc >= method->insns && pc < in checkDebugAndProf() 211 method->insns + dvmGetMethodInsnsSize(method)); in checkDebugAndProf()
|
/dalvik/dx/src/com/android/dx/ssa/back/ |
D | RegisterAllocator.java | 138 ArrayList<SsaInsn> insns = block.getInsns(); in insertMoveBefore() local 139 int insnIndex = insns.indexOf(insn); in insertMoveBefore() 146 if (insnIndex != insns.size() - 1) { in insertMoveBefore() 169 insns.add(insnIndex, toAdd); in insertMoveBefore()
|
D | SsaToRop.java | 150 ArrayList<SsaInsn> insns = b.getInsns(); in removeEmptyGotos() 152 if ((insns.size() == 1) in removeEmptyGotos() 153 && (insns.get(0).getOpcode() == Rops.GOTO)) { in removeEmptyGotos() 286 ArrayList<SsaInsn> insns = b.getInsns(); in verifyValidExitPredecessor() local 287 SsaInsn lastInsn = insns.get(insns.size() - 1); in verifyValidExitPredecessor()
|
/dalvik/libdex/ |
D | InstrUtils.h | 142 int dexGetInstrOrTableWidthAbs(const InstructionWidth* widths, const u2* insns); 178 void dexDecodeInstruction(const InstructionFormat* fmts, const u2* insns,
|
D | InstrUtils.c | 1036 #define FETCH(_offset) (insns[(_offset)]) 1048 void dexDecodeInstruction(const InstructionFormat* fmts, const u2* insns, in dexDecodeInstruction() argument 1051 u2 inst = *insns; in dexDecodeInstruction() 1234 int dexGetInstrOrTableWidthAbs(const InstructionWidth* widths, const u2* insns) in dexGetInstrOrTableWidthAbs() argument 1238 if (*insns == kPackedSwitchSignature) { in dexGetInstrOrTableWidthAbs() 1239 width = 4 + insns[1] * 2; in dexGetInstrOrTableWidthAbs() 1240 } else if (*insns == kSparseSwitchSignature) { in dexGetInstrOrTableWidthAbs() 1241 width = 2 + insns[1] * 4; in dexGetInstrOrTableWidthAbs() 1242 } else if (*insns == kArrayDataSignature) { in dexGetInstrOrTableWidthAbs() 1243 u2 elemWidth = insns[1]; in dexGetInstrOrTableWidthAbs() [all …]
|
/dalvik/vm/compiler/ |
D | Frontend.c | 82 *target = (unsigned int) calleeMethod->insns; in findBlockBoundary() 94 *target = (unsigned int) calleeMethod->insns; in findBlockBoundary() 106 *target = (unsigned int) calleeMethod->insns; in findBlockBoundary() 117 *target = (unsigned int) calleeMethod->insns; in findBlockBoundary() 188 const u2 *codePtr = dexCode->insns; in analyzeMethodBody() 189 const u2 *codeEnd = dexCode->insns + dexCode->insnsSize; in analyzeMethodBody() 249 const u2 *codePtr = dexCode->insns + curOffset; in dvmCompileTrace() 379 codePtr = dexCode->insns + curOffset; in dvmCompileTrace() 500 (intptr_t) desc->method->insns, in dvmCompileTrace() 578 const u2 *codePtr = dexCode->insns; in dvmCompileMethod() [all …]
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | DebugInfoItem.java | 177 DalvInsnList insns = code.getInsns(); in encode0() local 178 int codeSize = insns.codeSize(); in encode0() 179 int regSize = insns.getRegistersSize(); in encode0()
|