/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() 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/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 | 54 private ArrayList<DalvInsn> insns; field in OutputFinisher 92 this.insns = new ArrayList<DalvInsn>(initialCapacity); in OutputFinisher() 168 for (DalvInsn insn : insns) { in getAllConstants() 236 insns.add(insn); in add() 247 insns.add(at, insn); in insert() 284 int size = insns.size(); in reverseBranch() 289 targetInsn = (TargetInsn) insns.get(index); in reverseBranch() 302 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget)); in reverseBranch() 313 for (DalvInsn insn : insns) { in assignIndices() 379 return DalvInsnList.makeImmutable(insns, reservedCount + unreservedRegCount in finishProcessingAndGetList() [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 ArrayList<SsaInsn> insns; field in SsaBasicBlock 124 this.insns = new ArrayList<SsaInsn>(); in SsaBasicBlock() 151 result.insns.ensureCapacity(ropInsns.size()); in newFromRop() 154 result.insns.add(new NormalSsaInsn (ropInsns.get(i), result)); in newFromRop() 204 insns.add(0, new PhiInsn(reg, this)); in addPhiInsnForReg() 215 insns.add(0, new PhiInsn(resultSpec, this)); in addPhiInsnForReg() 226 insns.add(getCountPhiInsns(), newInsn); in addInsnToHead() 241 SsaInsn oldInsn = insns.get(insns.size() - 1); in replaceLastInsn() 244 insns.set(insns.size() - 1, newInsn); in replaceLastInsn() 256 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 | 791 ArrayList<Insn> insns = machine.getInsns(); in processBlock() local 792 int insnSz = insns.size(); in processBlock() 955 Insn insn = insns.get(i); in processBlock() 958 insns.set(i, insn); in processBlock() 985 Insn extraInsn = insns.get(--insnSz); in processBlock() 1018 Insn lastInsn = (insnSz == 0) ? null : insns.get(insnSz - 1); in processBlock() 1032 insns.add(new PlainInsn(Rops.GOTO, pos, null, in processBlock() 1044 il.set(i, insns.get(i)); in processBlock() 1112 InsnList insns = new InsnList(sz + 1); in addSetupBlocks() local 1126 insns.set(i, insn); in addSetupBlocks() [all …]
|
D | RopperMachine.java | 83 private final ArrayList<Insn> insns; field in RopperMachine 155 this.insns = new ArrayList<Insn>(25); in RopperMachine() 173 return insns; in getInsns() 203 insns.clear(); in startBlock() 351 insns.add(new PlainInsn(Rops.opMove(type), pos, scratch, src)); in run() 360 insns.add(new PlainInsn(Rops.opMove(type), pos, in run() 390 insns.add(insn); in run() 395 insns.add(insn); in run() 437 insns.add(insn); in run() 442 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() 660 size_t dexGetWidthFromInstruction(const u2* insns) in dexGetWidthFromInstruction() argument 664 if (*insns == kPackedSwitchSignature) { in dexGetWidthFromInstruction() 665 width = 4 + insns[1] * 2; in dexGetWidthFromInstruction() 666 } else if (*insns == kSparseSwitchSignature) { in dexGetWidthFromInstruction() [all …]
|
D | InstrUtils.h | 153 size_t dexGetWidthFromInstruction(const u2* insns); 193 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 | 143 ArrayList<SsaInsn> insns = b.getInsns(); in removeEmptyGotos() 145 if ((insns.size() == 1) in removeEmptyGotos() 146 && (insns.get(0).getOpcode() == Rops.GOTO)) { in removeEmptyGotos() 280 ArrayList<SsaInsn> insns = b.getInsns(); in verifyValidExitPredecessor() local 281 SsaInsn lastInsn = insns.get(insns.size() - 1); in verifyValidExitPredecessor()
|
D | LivenessAnalyzer.java | 201 ArrayList<SsaInsn> insns; in liveOutAtBlock() local 203 insns = blockN.getInsns(); in liveOutAtBlock() 206 statementIndex = insns.size() - 1; in liveOutAtBlock()
|
/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()
|
/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()
|