Searched refs:insns (Results 1 - 25 of 91) sorted by relevance

1234

/dalvik/dx/src/com/android/dx/rop/code/
H A DBasicBlock.java32 private final InsnList insns; field in class:BasicBlock
51 * @param insns {@code non-null;} list of instructions in this block
59 public BasicBlock(int label, InsnList insns, IntList successors, argument
66 insns.throwIfMutable();
69 throw new NullPointerException("insns == null");
72 int sz = insns.size();
75 throw new IllegalArgumentException("insns.size() == 0");
79 Rop one = insns.get(i).getOpcode();
81 throw new IllegalArgumentException("insns[" + i + "] is a " +
86 Insn lastInsn = insns
[all...]
H A DLocalVariableExtractor.java94 InsnList insns = block.getInsns();
95 int insnSz = insns.size();
105 (insns.getLast().getResult() != null);
121 Insn insn = insns.get(i);
H A DBasicBlockList.java134 InsnList insns = one.getInsns();
135 int insnsSz = insns.size();
138 Insn insn = insns.get(j);
179 InsnList insns = one.getInsns();
180 insns.forEach(visitor);
/dalvik/dx/src/com/android/dx/dex/code/
H A DDalvCode.java69 private DalvInsnList insns; field in class:DalvCode
97 this.insns = null;
104 if (insns != null) {
108 insns = unprocessedInsns.finishProcessingAndGetList();
109 positions = PositionList.make(insns, positionInfo);
110 locals = LocalList.make(insns);
186 return insns;
H A DOutputFinisher.java46 private ArrayList<DalvInsn> insns; field in class:OutputFinisher
71 this.insns = new ArrayList<DalvInsn>(initialCapacity);
146 for (DalvInsn insn : insns) {
214 insns.add(insn);
225 insns.add(at, insn);
261 int size = insns.size();
266 targetInsn = (TargetInsn) insns.get(index);
279 insns.set(index, targetInsn.withNewTargetAndReversed(newTarget));
290 for (DalvInsn insn : insns) {
353 return DalvInsnList.makeImmutable(insns,
[all...]
H A DHighRegisterPrefix.java34 private SimpleInsn[] insns; field in class:HighRegisterPrefix
51 insns = null;
61 for (SimpleInsn insn : insns) {
73 for (SimpleInsn insn : insns) {
80 * {@link #insns} if not already done.
83 if (insns != null) {
90 insns = new SimpleInsn[sz];
94 insns[i] = moveInsnFor(src, outAt);
H A DPositionList.java53 * @param insns {@code non-null;} instructions to convert
58 public static PositionList make(DalvInsnList insns, int howMuch) { argument
75 int sz = insns.size();
81 DalvInsn insn = insns.get(i);
/dalvik/vm/analysis/
H A DVerifySubs.c41 const u2* insns = meth->insns; local
55 if (*insns == kPackedSwitchSignature) {
56 width = 4 + insns[1] * 2;
57 } else if (*insns == kSparseSwitchSignature) {
58 width = 2 + insns[1] * 4;
59 } else if (*insns == kArrayDataSignature) {
60 u4 size = insns[2] | (((u4)insns[3]) << 16);
61 width = 4 + (insns[
198 const u2* insns = meth->insns + curOffset; local
314 const u2* insns = meth->insns + curOffset; local
413 const u2* insns = meth->insns + curOffset; local
[all...]
H A DDexOptimize.c66 static void rewriteInstField(Method* method, u2* insns, OpCode newOpc);
67 static bool rewriteVirtualInvoke(Method* method, u2* insns, OpCode newOpc);
68 static bool rewriteEmptyDirectInvoke(Method* method, u2* insns);
69 static bool rewriteExecuteInline(Method* method, u2* insns,
71 static bool rewriteExecuteInlineRange(Method* method, u2* insns,
1568 u2* insns; local
1574 insns = (u2*) method->insns;
1575 assert(insns != NULL);
1581 inst = *insns
1963 rewriteInstField(Method* method, u2* insns, OpCode newOpc) argument
2131 rewriteVirtualInvoke(Method* method, u2* insns, OpCode newOpc) argument
2175 rewriteEmptyDirectInvoke(Method* method, u2* insns) argument
2301 rewriteExecuteInline(Method* method, u2* insns, MethodType methodType, const InlineSub* inlineSubs) argument
2351 rewriteExecuteInlineRange(Method* method, u2* insns, MethodType methodType, const InlineSub* inlineSubs) argument
[all...]
H A DDexVerify.c184 * exit successfully. Note: meth->insns gets set to a native function
275 const u2* insns = meth->insns + curOffset; local
283 offsetToArrayData = insns[1] | (((s4)insns[2]) << 16);
294 arrayData = insns + offsetToArrayData;
330 dexDecodeInstruction(gDvm.instrFormat, meth->insns + insnIdx, pDecInsn);
537 const u2* insns = meth->insns; local
553 OpCode opcode = *insns
[all...]
/dalvik/vm/mterp/c/
H A DOP_FILL_ARRAY_DATA.c13 if (arrayData < curMethod->insns ||
14 arrayData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod))
H A DOP_PACKED_SWITCH.c12 if (switchData < curMethod->insns ||
13 switchData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod))
H A DOP_SPARSE_SWITCH.c12 if (switchData < curMethod->insns ||
13 switchData >= curMethod->insns + dvmGetMethodInsnsSize(curMethod))
/dalvik/dx/src/com/android/dx/ssa/
H A DSsaBasicBlock.java54 private ArrayList<SsaInsn> insns; field in class:SsaBasicBlock
121 this.insns = new ArrayList<SsaInsn>();
148 result.insns.ensureCapacity(ropInsns.size());
151 result.insns.add(new NormalSsaInsn (ropInsns.get(i), result));
201 insns.add(0, new PhiInsn(reg, this));
212 insns.add(0, new PhiInsn(resultSpec, this));
217 * insns.
223 insns.add(getCountPhiInsns(), newInsn);
238 SsaInsn oldInsn = insns.get(insns
[all...]
H A DLocalVariableExtractor.java107 List<SsaInsn> insns = block.getInsns();
108 int insnSz = insns.size();
110 // The exit block has no insns and no successors
122 SsaInsn lastInsn = insns.get(insnSz - 1);
142 SsaInsn insn = insns.get(i);
H A DLiteralOpUpgrader.java97 // We're only dealing with two-source insns here.
154 List<SsaInsn> insns = insn.getBlock().getInsns();
157 insns.set(insns.lastIndexOf(insn), newInsn);
/dalvik/dx/src/com/android/dx/cf/code/
H A DRopper.java688 ArrayList<Insn> insns = machine.getInsns();
689 int insnSz = insns.size();
855 Insn insn = insns.get(i);
858 insns.set(i, insn);
883 * are for move-result insns, and these need goto insns as well.
885 Insn extraInsn = insns.get(--insnSz);
918 Insn lastInsn = (insnSz == 0) ? null : insns.get(insnSz - 1);
932 insns.add(new PlainInsn(Rops.GOTO, pos, null,
944 il.set(i, insns
1594 filterMoveReturnAddressInsns(InsnList insns) argument
[all...]
H A DRopperMachine.java77 private final ArrayList<Insn> insns; field in class:RopperMachine
142 this.insns = new ArrayList<Insn>(25);
160 return insns;
183 * {@link #insns} list, set {@link #catches}, reset whether it has
190 insns.clear();
338 insns.add(new PlainInsn(Rops.opMove(type), pos, scratch, src));
347 insns.add(new PlainInsn(Rops.opMove(type), pos,
377 insns.add(insn);
382 insns.add(insn);
424 insns
[all...]
/dalvik/libdex/
H A DInstrUtils.h143 int dexGetInstrOrTableWidthAbs(const InstructionWidth* widths, const u2* insns);
177 * Decode the instruction pointed to by "insns".
179 void dexDecodeInstruction(const InstructionFormat* fmts, const u2* insns,
/dalvik/vm/mterp/portable/
H A Denddefs.c40 pc - curMethod->insns, fp);
H A Ddebug.c82 pCtrl->pAddressSet, pc - method->insns)) {
105 pc - method->insns)) {
169 dvmDbgPostLocationEvent(method, pc - method->insns, thisPtr,
186 assert(pc >= method->insns && pc <
187 method->insns + dvmGetMethodInsnsSize(method));
/dalvik/dx/src/com/android/dx/ssa/back/
H A DRegisterAllocator.java138 ArrayList<SsaInsn> insns = block.getInsns();
139 int insnIndex = insns.indexOf(insn);
146 if (insnIndex != insns.size() - 1) {
169 insns.add(insnIndex, toAdd);
H A DLivenessAnalyzer.java202 ArrayList<SsaInsn> insns;
204 insns = blockN.getInsns();
207 statementIndex = insns.size() - 1;
/dalvik/dx/src/com/android/dx/dex/file/
H A DDebugInfoItem.java177 DalvInsnList insns = code.getInsns();
178 int codeSize = insns.codeSize();
179 int regSize = insns.getRegistersSize();
/dalvik/vm/hprof/
H A DHprofStack.c246 assert(saveArea->xtra.currentPc >= method->insns &&
248 method->insns + dvmGetMethodInsnsSize(method));
250 method->insns);

Completed in 1105 milliseconds

1234