Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 25 of 37) sorted by relevance

12

/dalvik/libdex/
DDexDebugInfo.cpp120 static void emitLocalCbIfLive(void *cnxt, int reg, u4 endAddress, in emitLocalCbIfLive() argument
123 if (localCb != NULL && localInReg[reg].live) { in emitLocalCbIfLive()
124 localCb(cnxt, reg, localInReg[reg].startAddress, endAddress, in emitLocalCbIfLive()
125 localInReg[reg].name, in emitLocalCbIfLive()
126 localInReg[reg].descriptor, in emitLocalCbIfLive()
127 localInReg[reg].signature == NULL in emitLocalCbIfLive()
128 ? "" : localInReg[reg].signature ); in emitLocalCbIfLive()
182 int reg; in dexDecodeDebugInfo0() local
190 reg = argReg; in dexDecodeDebugInfo0()
203 localInReg[reg].name = name; in dexDecodeDebugInfo0()
[all …]
DDexDebugInfo.h36 typedef void (*DexDebugNewLocalCb)(void *cnxt, u2 reg, u4 startAddress,
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRegisterSpec.java44 private final int reg; field in RegisterSpec
61 private static RegisterSpec intern(int reg, TypeBearer type, in intern() argument
63 theInterningItem.set(reg, type, local); in intern()
85 public static RegisterSpec make(int reg, TypeBearer type) { in make() argument
86 return intern(reg, type, null); in make()
100 public static RegisterSpec make(int reg, TypeBearer type, in make() argument
106 return intern(reg, type, local); in make()
122 int reg, TypeBearer type, LocalItem local) { in makeLocalOptional() argument
124 return intern(reg, type, local); in makeLocalOptional()
133 public static String regString(int reg) { in regString() argument
[all …]
DRegisterSpecSet.java167 public RegisterSpec get(int reg) { in get() argument
169 return specs[reg]; in get()
201 for (int reg = 0; reg < length; reg++) { in findMatchingLocal()
202 RegisterSpec s = specs[reg]; in findMatchingLocal()
226 for (int reg = 0; reg < length; reg++) { in localItemToSpec()
227 RegisterSpec spec = specs[reg]; in localItemToSpec()
273 int reg = spec.getReg(); in put() local
274 specs[reg] = spec; in put()
276 if (reg > 0) { in put()
277 int prevReg = reg - 1; in put()
[all …]
DRegisterSpecList.java144 public RegisterSpec specForRegister(int reg) { in specForRegister() argument
151 if (rs.getReg() == reg) { in specForRegister()
165 public int indexOfRegister(int reg) { in indexOfRegister() argument
172 if (rs.getReg() == reg) { in indexOfRegister()
/dalvik/dx/src/com/android/dx/rop/code/
DRegisterSpec.java43 private final int reg; field in RegisterSpec
63 private static RegisterSpec intern(int reg, TypeBearer type, in intern() argument
66 theInterningItem.set(reg, type, local); in intern()
89 public static RegisterSpec make(int reg, TypeBearer type) { in make() argument
90 return intern(reg, type, null); in make()
104 public static RegisterSpec make(int reg, TypeBearer type, in make() argument
110 return intern(reg, type, local); in make()
126 int reg, TypeBearer type, LocalItem local) { in makeLocalOptional() argument
128 return intern(reg, type, local); in makeLocalOptional()
137 public static String regString(int reg) { in regString() argument
[all …]
DRegisterSpecSet.java166 public RegisterSpec get(int reg) { in get() argument
168 return specs[reg]; in get()
200 for (int reg = 0; reg < length; reg++) { in findMatchingLocal()
201 RegisterSpec s = specs[reg]; in findMatchingLocal()
225 for (int reg = 0; reg < length; reg++) { in localItemToSpec()
226 RegisterSpec spec = specs[reg]; in localItemToSpec()
272 int reg = spec.getReg(); in put() local
273 specs[reg] = spec; in put()
275 if (reg > 0) { in put()
276 int prevReg = reg - 1; in put()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DDebugInfoDecoder.java153 public int reg; field in DebugInfoDecoder.LocalEntry
164 public LocalEntry(int address, boolean isStart, int reg, int nameIndex, in LocalEntry() argument
168 this.reg = reg; in LocalEntry()
176 address, isStart ? "start" : "end", reg, in toString()
294 int reg = readUnsignedLeb128(bs); in decode0() local
298 address, true, reg, nameIdx, typeIdx, 0); in decode0()
301 lastEntryForReg[reg] = le; in decode0()
306 int reg = readUnsignedLeb128(bs); in decode0() local
311 address, true, reg, nameIdx, typeIdx, sigIdx); in decode0()
314 lastEntryForReg[reg] = le; in decode0()
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DPhiTypeResolver.java69 for (int reg = 0; reg < regCount; reg++) { in run()
70 SsaInsn definsn = ssaMeth.getDefinitionForRegister(reg); in run()
74 worklist.set(reg); in run()
78 int reg; in run() local
79 while ( 0 <= (reg = worklist.nextSetBit(0))) { in run()
80 worklist.clear(reg); in run()
86 PhiInsn definsn = (PhiInsn)ssaMeth.getDefinitionForRegister(reg); in run()
94 List<SsaInsn> useList = ssaMeth.getUseListForRegister(reg); in run()
DSsaInsn.java118 public boolean isResultReg(int reg) { in isResultReg() argument
119 return result != null && result.getReg() == reg; in isResultReg()
129 public void changeResultReg(int reg) { in changeResultReg() argument
131 result = result.withReg(reg); in changeResultReg()
215 public boolean isRegASource(int reg) { in isRegASource() argument
216 return null != getSources().specForRegister(reg); in isRegASource()
DSCCP.java113 private void addUsersToWorklist(int reg, int latticeValue) { in addUsersToWorklist() argument
115 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist()
119 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist()
132 private boolean setLatticeValueTo(int reg, int value, Constant cst) { in setLatticeValueTo() argument
134 if (latticeValues[reg] != value) { in setLatticeValueTo()
135 latticeValues[reg] = value; in setLatticeValueTo()
140 if (latticeValues[reg] != value in setLatticeValueTo()
141 || !latticeConstants[reg].equals(cst)) { in setLatticeValueTo()
142 latticeValues[reg] = value; in setLatticeValueTo()
143 latticeConstants[reg] = cst; in setLatticeValueTo()
[all …]
DSsaMethod.java408 public SsaInsn getDefinitionForRegister(int reg) { in getDefinitionForRegister() argument
414 return definitionList[reg]; in getDefinitionForRegister()
434 return definitionList[reg]; in getDefinitionForRegister()
498 int reg = oldSource.getReg(); in onSourceChanged() local
499 useList[reg].remove(insn); in onSourceChanged()
502 int reg = newSource.getReg(); in onSourceChanged() local
503 if (useList.length <= reg) { in onSourceChanged()
507 useList[reg].add(insn); in onSourceChanged()
530 int reg = sources.get(i).getReg(); in onSourcesChanged() local
531 useList[reg].add(insn); in onSourcesChanged()
[all …]
DSsaConverter.java343 for (int reg = 0, s = regCount; reg < s; reg++) { in placePhiFunctions()
348 worklist = (BitSet) (defsites[reg].clone()); in placePhiFunctions()
358 if (!phisites[reg].get(dfBlockIndex)) { in placePhiFunctions()
359 phisites[reg].set(dfBlockIndex); in placePhiFunctions()
361 int tReg = reg + threshold; in placePhiFunctions()
371 if (!defsites[reg].get(dfBlockIndex)) { in placePhiFunctions()
DSsaRenamer.java226 int reg = ssaReg.getReg(); in setNameForSsaReg() local
229 ssaRegToLocalItems.ensureCapacity(reg + 1); in setNameForSsaReg()
230 while (ssaRegToLocalItems.size() <= reg) { in setNameForSsaReg()
234 ssaRegToLocalItems.set(reg, local); in setNameForSsaReg()
341 int reg = registerSpec.getReg(); in map() local
345 RegisterSpec newVersion = currentMapping[reg]; in map()
353 + " " + currentMapping[reg]); in map()
357 return registerSpec.withReg(currentMapping[reg].getReg()); in map()
/dalvik/dx/src/com/android/dx/dex/file/
DDebugInfoDecoder.java164 public int reg; field in DebugInfoDecoder.LocalEntry
175 public LocalEntry(int address, boolean isStart, int reg, int nameIndex, in LocalEntry() argument
179 this.reg = reg; in LocalEntry()
187 address, isStart ? "start" : "end", reg, in toString()
298 int reg = Leb128.readUnsignedLeb128(bs); in decode0() local
302 address, true, reg, nameIdx, typeIdx, 0); in decode0()
305 lastEntryForReg[reg] = le; in decode0()
310 int reg = Leb128.readUnsignedLeb128(bs); in decode0() local
315 address, true, reg, nameIdx, typeIdx, sigIdx); in decode0()
318 lastEntryForReg[reg] = le; in decode0()
[all …]
/dalvik/dx/src/com/android/dx/ssa/back/
DRegisterAllocator.java79 protected final int getCategoryForSsaReg(int reg) { in getCategoryForSsaReg() argument
80 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getCategoryForSsaReg()
97 protected final RegisterSpec getDefinitionSpecForSsaReg(int reg) { in getDefinitionSpecForSsaReg() argument
98 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getDefinitionSpecForSsaReg()
110 protected boolean isDefinitionMoveParam(int reg) { in isDefinitionMoveParam() argument
111 SsaInsn defInsn = ssaMeth.getDefinitionForRegister(reg); in isDefinitionMoveParam()
134 RegisterSpec reg) { in insertMoveBefore() argument
160 reg.getTypeBearer()); in insertMoveBefore()
165 RegisterSpecList.make(reg)), block); in insertMoveBefore()
DInterferenceGraph.java83 public void mergeInterferenceSet(int reg, IntSet set) { in mergeInterferenceSet() argument
84 if (reg < interference.size()) { in mergeInterferenceSet()
85 set.merge(interference.get(reg)); in mergeInterferenceSet()
DFirstFitLocalCombiningAllocator.java214 for (RegisterSpec reg : e.getValue()) { in printLocalVars()
216 regs.append(reg.getReg()); in printLocalVars()
454 int reg = alignment.nextClearBit(reservedRopRegs, startReg); in findNextUnreservedRopReg() local
459 while (i < width && !reservedRopRegs.get(reg + i)) { in findNextUnreservedRopReg()
464 return reg; in findNextUnreservedRopReg()
467 reg = alignment.nextClearBit(reservedRopRegs, reg + i); in findNextUnreservedRopReg()
482 int reg = alignment.nextClearBit(usedRopRegs, startReg); in findRopRegForLocal() local
487 while (i < category && !usedRopRegs.get(reg + i)) { in findRopRegForLocal()
492 return reg; in findRopRegForLocal()
495 reg = alignment.nextClearBit(usedRopRegs, reg + i); in findRopRegForLocal()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/
DForm31c.java77 RegisterSpec reg; in isCompatible() local
81 reg = regs.get(0); in isCompatible()
89 reg = regs.get(0); in isCompatible()
90 if (reg.getReg() != regs.get(1).getReg()) { in isCompatible()
100 if (!unsignedFitsInByte(reg.getReg())) { in isCompatible()
DForm21c.java77 RegisterSpec reg; in isCompatible() local
81 reg = regs.get(0); in isCompatible()
89 reg = regs.get(0); in isCompatible()
90 if (reg.getReg() != regs.get(1).getReg()) { in isCompatible()
100 if (!unsignedFitsInByte(reg.getReg())) { in isCompatible()
/dalvik/dx/src/com/android/dx/dex/code/form/
DForm21c.java78 RegisterSpec reg; in isCompatible() local
82 reg = regs.get(0); in isCompatible()
90 reg = regs.get(0); in isCompatible()
91 if (reg.getReg() != regs.get(1).getReg()) { in isCompatible()
101 if (!unsignedFitsInByte(reg.getReg())) { in isCompatible()
DForm31c.java78 RegisterSpec reg; in isCompatible() local
82 reg = regs.get(0); in isCompatible()
90 reg = regs.get(0); in isCompatible()
91 if (reg.getReg() != regs.get(1).getReg()) { in isCompatible()
101 if (!unsignedFitsInByte(reg.getReg())) { in isCompatible()
DForm35c.java105 RegisterSpec reg = regs.get(i); in compatibleRegs() local
112 bits.set(i, unsignedFitsInNibble(reg.getReg() + in compatibleRegs()
113 reg.getCategory() - 1)); in compatibleRegs()
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DLocalList.java399 int reg = e.getRegister(); in debugVerify0() local
402 Entry already = active[reg]; in debugVerify0()
410 active[reg] = e; in debugVerify0()
412 if (active[reg] == null) { in debugVerify0()
425 if (test.getRegisterSpec().getReg() == reg) { in debugVerify0()
449 active[reg] = null; in debugVerify0()
494 private void aboutToProcess(int address, int reg) { in aboutToProcess() argument
505 if (first || (reg >= endIndices.length)) { in aboutToProcess()
512 int newSz = reg + 1; in aboutToProcess()
/dalvik/dx/src/com/android/dx/dex/code/
DLocalList.java395 int reg = e.getRegister(); in debugVerify0() local
398 Entry already = active[reg]; in debugVerify0()
406 active[reg] = e; in debugVerify0()
408 if (active[reg] == null) { in debugVerify0()
421 if (test.getRegisterSpec().getReg() == reg) { in debugVerify0()
445 active[reg] = null; in debugVerify0()
490 private void aboutToProcess(int address, int reg) { in aboutToProcess() argument
501 if (first || (reg >= endIndices.length)) { in aboutToProcess()
508 int newSz = reg + 1; in aboutToProcess()

12