/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/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() 153 return insns; in getInsns() 202 return insns.get(0); in getFirstInsn() 212 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/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/dex/code/ |
D | OutputFinisher.java | 53 private ArrayList<DalvInsn> insns; field in OutputFinisher 91 this.insns = new ArrayList<DalvInsn>(initialCapacity); in OutputFinisher() 167 for (DalvInsn insn : insns) { in getAllConstants() 244 insns.add(insn); in add() 255 insns.add(at, insn); in insert() 260 return insns.get(at); in get() 264 return insns.size(); in size() 300 int size = insns.size(); in reverseBranch() 305 targetInsn = (TargetInsn) insns.get(index); in reverseBranch() 318 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget)); in reverseBranch() [all …]
|
D | DalvCode.java | 68 private DalvInsnList insns; field in DalvCode 96 this.insns = null; in DalvCode() 103 if (insns != null) { in finishProcessingIfNecessary() 107 insns = unprocessedInsns.finishProcessingAndGetList(); in finishProcessingIfNecessary() 108 positions = PositionList.make(insns, positionInfo); in finishProcessingIfNecessary() 109 locals = LocalList.make(insns); in finishProcessingIfNecessary() 185 return insns; in getInsns()
|
D | HighRegisterPrefix.java | 33 private SimpleInsn[] insns; field in HighRegisterPrefix 50 insns = null; in HighRegisterPrefix() 60 for (SimpleInsn insn : insns) { in codeSize() 72 for (SimpleInsn insn : insns) { in writeTo() 82 if (insns != null) { in calculateInsnsIfNecessary() 89 insns = new SimpleInsn[sz]; in calculateInsnsIfNecessary() 93 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 | 51 private final ArrayList<SsaInsn> insns; field in SsaBasicBlock 118 this.insns = new ArrayList<SsaInsn>(); in SsaBasicBlock() 145 result.insns.ensureCapacity(ropInsns.size()); in newFromRop() 148 result.insns.add(new NormalSsaInsn (ropInsns.get(i), result)); in newFromRop() 198 insns.add(0, new PhiInsn(reg, this)); in addPhiInsnForReg() 209 insns.add(0, new PhiInsn(resultSpec, this)); in addPhiInsnForReg() 220 insns.add(getCountPhiInsns(), newInsn); in addInsnToHead() 235 SsaInsn oldInsn = insns.get(insns.size() - 1); in replaceLastInsn() 238 insns.set(insns.size() - 1, newInsn); in replaceLastInsn() 250 int sz = insns.size(); in forEachPhiInsn() [all …]
|
D | LocalVariableExtractor.java | 106 List<SsaInsn> insns = block.getInsns(); in processBlock() local 107 int insnSz = insns.size(); in processBlock() 121 SsaInsn lastInsn = insns.get(insnSz - 1); in processBlock() 141 SsaInsn insn = insns.get(i); in processBlock()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | Ropper.java | 793 ArrayList<Insn> insns = machine.getInsns(); in processBlock() local 794 int insnSz = insns.size(); in processBlock() 957 Insn insn = insns.get(i); in processBlock() 960 insns.set(i, insn); in processBlock() 987 Insn extraInsn = insns.get(--insnSz); in processBlock() 1020 Insn lastInsn = (insnSz == 0) ? null : insns.get(insnSz - 1); in processBlock() 1034 insns.add(new PlainInsn(Rops.GOTO, pos, null, in processBlock() 1046 il.set(i, insns.get(i)); in processBlock() 1114 InsnList insns = new InsnList(sz + 1); in addSetupBlocks() local 1128 insns.set(i, insn); in addSetupBlocks() [all …]
|
D | RopperMachine.java | 85 private final ArrayList<Insn> insns; field in RopperMachine 157 this.insns = new ArrayList<Insn>(25); in RopperMachine() 175 return insns; in getInsns() 205 insns.clear(); in startBlock() 353 insns.add(new PlainInsn(Rops.opMove(type), pos, scratch, src)); in run() 362 insns.add(new PlainInsn(Rops.opMove(type), pos, in run() 392 insns.add(insn); in run() 397 insns.add(insn); in run() 439 insns.add(insn); in run() 444 insns.add(insn); in run() [all …]
|
/dalvik/libdex/ |
D | InstrUtils.cpp | 473 #define FETCH(_offset) (insns[(_offset)]) 474 #define FETCH_u4(_offset) (fetch_u4_impl((_offset), insns)) 480 static inline u4 fetch_u4_impl(u4 offset, const u2* insns) { in fetch_u4_impl() argument 481 return insns[offset] | ((u4) insns[offset+1] << 16); in fetch_u4_impl() 490 void dexDecodeInstruction(const u2* insns, DecodedInstruction* pDec) in dexDecodeInstruction() argument 492 u2 inst = *insns; in dexDecodeInstruction() 684 size_t dexGetWidthFromInstruction(const u2* insns) in dexGetWidthFromInstruction() argument 688 if (*insns == kPackedSwitchSignature) { in dexGetWidthFromInstruction() 689 width = 4 + insns[1] * 2; in dexGetWidthFromInstruction() 690 } else if (*insns == kSparseSwitchSignature) { in dexGetWidthFromInstruction() [all …]
|
D | InstrUtils.h | 159 size_t dexGetWidthFromInstruction(const u2* insns); 199 void dexDecodeInstruction(const u2* insns, DecodedInstruction* pDec);
|
/dalvik/dx/src/com/android/dx/ssa/back/ |
D | RegisterAllocator.java | 136 ArrayList<SsaInsn> insns = block.getInsns(); in insertMoveBefore() local 137 int insnIndex = insns.indexOf(insn); in insertMoveBefore() 144 if (insnIndex != insns.size() - 1) { in insertMoveBefore() 167 insns.add(insnIndex, toAdd); in insertMoveBefore()
|
D | SsaToRop.java | 144 ArrayList<SsaInsn> insns = b.getInsns(); in removeEmptyGotos() 146 if ((insns.size() == 1) in removeEmptyGotos() 147 && (insns.get(0).getOpcode() == Rops.GOTO)) { in removeEmptyGotos() 284 ArrayList<SsaInsn> insns = b.getInsns(); in verifyValidExitPredecessor() local 285 SsaInsn lastInsn = insns.get(insns.size() - 1); in verifyValidExitPredecessor()
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | DebugInfoItem.java | 174 DalvInsnList insns = code.getInsns(); in encode0() local 175 int codeSize = insns.codeSize(); in encode0() 176 int regSize = insns.getRegistersSize(); in encode0()
|
D | CodeItem.java | 160 DalvInsnList insns = code.getInsns(); in debugPrint() local 165 insns.debugPrint(out, prefix, verbose); in debugPrint() 291 DalvInsnList insns = code.getInsns(); in writeCodes() local 294 insns.writeTo(out); in writeCodes()
|
/dalvik/dexgen/src/com/android/dexgen/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()
|