Home
last modified time | relevance | path

Searched refs:insns (Results 1 – 25 of 36) sorted by relevance

12

/dalvik/dx/src/com/android/dx/rop/code/
DBasicBlock.java32 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 …]
DLocalVariableExtractor.java94 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()
DBasicBlockList.java134 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/
DBasicBlock.java32 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 …]
DLocalVariableExtractor.java94 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()
DBasicBlockList.java134 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/dexgen/src/com/android/dexgen/dex/code/
DOutputFinisher.java46 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 …]
DDalvCode.java69 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()
DHighRegisterPrefix.java34 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()
DPositionList.java58 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/
DOutputFinisher.java53 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 …]
DDalvCode.java68 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()
DHighRegisterPrefix.java33 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()
DPositionList.java58 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/
DSsaBasicBlock.java51 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 …]
DLocalVariableExtractor.java106 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/
DRopper.java793 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 …]
DRopperMachine.java85 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/dx/src/com/android/dx/ssa/back/
DRegisterAllocator.java136 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()
DSsaToRop.java144 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()
DLivenessAnalyzer.java202 ArrayList<SsaInsn> insns; in liveOutAtBlock() local
204 insns = blockN.getInsns(); in liveOutAtBlock()
207 statementIndex = insns.size() - 1; in liveOutAtBlock()
/dalvik/dx/src/com/android/dx/dex/file/
DDebugInfoItem.java174 DalvInsnList insns = code.getInsns(); in encode0() local
175 int codeSize = insns.codeSize(); in encode0()
176 int regSize = insns.getRegistersSize(); in encode0()
DCodeItem.java160 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/
DDebugInfoItem.java177 DalvInsnList insns = code.getInsns(); in encode0() local
178 int codeSize = insns.codeSize(); in encode0()
179 int regSize = insns.getRegistersSize(); in encode0()
DCodeItem.java168 DalvInsnList insns = code.getInsns(); in debugPrint() local
173 insns.debugPrint(out, prefix, verbose); in debugPrint()
298 DalvInsnList insns = code.getInsns(); in writeCodes() local
301 insns.writeTo(out); in writeCodes()

12