/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() 178 InsnList insns = one.getInsns(); in forEachInsn() local 179 insns.forEach(visitor); in forEachInsn()
|
/dalvik/dexgen/src/com/android/dexgen/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 | Optimize.cpp | 41 static void rewriteInstField(Method* method, u2* insns, Opcode quickOpc, 43 static void rewriteJumboInstField(Method* method, u2* insns, 45 static void rewriteStaticField(Method* method, u2* insns, Opcode volatileOpc); 46 static void rewriteJumboStaticField(Method* method, u2* insns, 48 static void rewriteVirtualInvoke(Method* method, u2* insns, Opcode newOpc); 49 static bool rewriteInvokeObjectInit(Method* method, u2* insns); 50 static bool rewriteJumboInvokeObjectInit(Method* method, u2* insns); 51 static bool rewriteExecuteInline(Method* method, u2* insns, 53 static bool rewriteExecuteInlineRange(Method* method, u2* insns, 55 static void rewriteReturnVoid(Method* method, u2* insns); [all …]
|
D | VerifySubs.cpp | 95 const u2* insns = meth->insns + curOffset; in dvmGetBranchOffset() local 97 switch (*insns & 0xff) { in dvmGetBranchOffset() 99 *pOffset = ((s2) *insns) >> 8; in dvmGetBranchOffset() 103 *pOffset = insns[1] | (((u4) insns[2]) << 16); in dvmGetBranchOffset() 107 *pOffset = (s2) insns[1]; in dvmGetBranchOffset() 122 *pOffset = (s2) insns[1]; in dvmGetBranchOffset()
|
D | DexVerify.cpp | 88 const u2* insns = meth->insns; in computeWidthsAndCountOps() local 95 size_t width = dexGetWidthFromInstruction(insns); in computeWidthsAndCountOps() 97 LOG_VFY_METH(meth, "VFY: invalid instruction (0x%04x)", *insns); in computeWidthsAndCountOps() 104 Opcode opcode = dexOpcodeFromCodeUnit(*insns); in computeWidthsAndCountOps() 112 insns += width; in computeWidthsAndCountOps() 349 const u2* insns = meth->insns + curOffset; in checkArrayData() local 357 offsetToArrayData = insns[1] | (((s4)insns[2]) << 16); in checkArrayData() 368 arrayData = insns + offsetToArrayData; in checkArrayData() 606 const u2* insns = meth->insns + curOffset; in checkSwitchTargets() local 617 offsetToSwitch = insns[1] | ((s4) insns[2]) << 16; in checkSwitchTargets() [all …]
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | OutputFinisher.java | 52 private ArrayList<DalvInsn> insns; field in OutputFinisher 79 this.insns = new ArrayList<DalvInsn>(initialCapacity); in OutputFinisher() 154 for (DalvInsn insn : insns) { in getAllConstants() 222 insns.add(insn); in add() 233 insns.add(at, insn); in insert() 270 int size = insns.size(); in reverseBranch() 275 targetInsn = (TargetInsn) insns.get(index); in reverseBranch() 288 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget)); in reverseBranch() 299 for (DalvInsn insn : insns) { in assignIndices() 362 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/dexgen/src/com/android/dexgen/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 | 52 private ArrayList<SsaInsn> insns; field in SsaBasicBlock 125 this.insns = new ArrayList<SsaInsn>(); in SsaBasicBlock() 152 result.insns.ensureCapacity(ropInsns.size()); in newFromRop() 155 result.insns.add(new NormalSsaInsn (ropInsns.get(i), result)); in newFromRop() 205 insns.add(0, new PhiInsn(reg, this)); in addPhiInsnForReg() 216 insns.add(0, new PhiInsn(resultSpec, this)); in addPhiInsnForReg() 227 insns.add(getCountPhiInsns(), newInsn); in addInsnToHead() 242 SsaInsn oldInsn = insns.get(insns.size() - 1); in replaceLastInsn() 245 insns.set(insns.size() - 1, newInsn); in replaceLastInsn() 257 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()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | Ropper.java | 688 ArrayList<Insn> insns = machine.getInsns(); in processBlock() local 689 int insnSz = insns.size(); in processBlock() 855 Insn insn = insns.get(i); in processBlock() 858 insns.set(i, insn); in processBlock() 885 Insn extraInsn = insns.get(--insnSz); in processBlock() 918 Insn lastInsn = (insnSz == 0) ? null : insns.get(insnSz - 1); in processBlock() 932 insns.add(new PlainInsn(Rops.GOTO, pos, null, in processBlock() 944 il.set(i, insns.get(i)); in processBlock() 1012 InsnList insns = new InsnList(sz + 1); in addSetupBlocks() local 1026 insns.set(i, insn); in addSetupBlocks() [all …]
|
D | RopperMachine.java | 78 private final ArrayList<Insn> insns; field in RopperMachine 143 this.insns = new ArrayList<Insn>(25); in RopperMachine() 161 return insns; in getInsns() 191 insns.clear(); in startBlock() 339 insns.add(new PlainInsn(Rops.opMove(type), pos, scratch, src)); in run() 348 insns.add(new PlainInsn(Rops.opMove(type), pos, in run() 378 insns.add(insn); in run() 383 insns.add(insn); in run() 425 insns.add(insn); in run() 430 insns.add(insn); in run() [all …]
|
/dalvik/vm/mterp/c/ |
D | OP_FILL_ARRAY_DATA.cpp | 13 if (arrayData < curMethod->insns || in HANDLE_OPCODE() 14 arrayData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod)) in HANDLE_OPCODE()
|
D | OP_SPARSE_SWITCH.cpp | 12 if (switchData < curMethod->insns || in HANDLE_OPCODE() 13 switchData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod)) in HANDLE_OPCODE()
|
D | OP_PACKED_SWITCH.cpp | 12 if (switchData < curMethod->insns || in HANDLE_OPCODE() 13 switchData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod)) in HANDLE_OPCODE()
|
/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()
|