Home
last modified time | relevance | path

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

12

/dalvik/dx/src/com/android/dx/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()
DBasicBlockList.java391 int reg = spec.getNextReg(); in processReg() local
393 if (reg > regCount) { in processReg()
394 regCount = reg; in processReg()
/dalvik/vm/mterp/x86/
Dheader.S106 #define SPILL(reg) movl reg##,reg##_SPILL(%ebp) argument
107 #define UNSPILL(reg) movl reg##_SPILL(%ebp),reg argument
108 #define SPILL_TMP(reg) movl reg,TMP_SPILL(%ebp) argument
109 #define UNSPILL_TMP(reg) movl TMP_SPILL(%ebp),reg argument
DOP_IPUT.S15 SPILL(rIBASE) # need another reg
61 $store $reg,(%ecx,%eax,1) # obj.field <- v[A](8/16/32 bits)
DOP_APUT.S21 $store $reg,(%eax)
/dalvik/dx/src/com/android/dx/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 …]
DDebugInfoEncoder.java287 int reg = entry.getRegister(); in emitLocalsAtAddress() local
288 LocalList.Entry prevEntry = lastEntryForReg[reg]; in emitLocalsAtAddress()
300 lastEntryForReg[reg] = entry; in emitLocalsAtAddress()
536 int reg = e.getRegister(); in extractMethodArguments() local
538 if (reg < argBase) { in extractMethodArguments()
543 if (seen.get(reg - argBase)) { in extractMethodArguments()
547 seen.set(reg - argBase); in extractMethodArguments()
/dalvik/dx/src/com/android/dx/ssa/
DPhiTypeResolver.java70 for (int reg = 0; reg < regCount; reg++) { in run()
71 SsaInsn definsn = ssaMeth.getDefinitionForRegister(reg); in run()
75 worklist.set(reg); in run()
79 int reg; in run() local
80 while ( 0 <= (reg = worklist.nextSetBit(0))) { in run()
81 worklist.clear(reg); in run()
87 PhiInsn definsn = (PhiInsn)ssaMeth.getDefinitionForRegister(reg); in run()
95 List<SsaInsn> useList = ssaMeth.getUseListForRegister(reg); in run()
DSsaInsn.java114 public boolean isResultReg(int reg) { in isResultReg() argument
115 return result != null && result.getReg() == reg; in isResultReg()
125 public void changeResultReg(int reg) { in changeResultReg() argument
127 result = result.withReg(reg); in changeResultReg()
211 public boolean isRegASource(int reg) { in isRegASource() argument
212 return null != getSources().specForRegister(reg); in isRegASource()
DSCCP.java103 private void addUsersToWorklist(int reg, int latticeValue) { in addUsersToWorklist() argument
105 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist()
109 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist()
122 private boolean setLatticeValueTo(int reg, int value, Constant cst) { in setLatticeValueTo() argument
124 if (latticeValues[reg] != value) { in setLatticeValueTo()
125 latticeValues[reg] = value; in setLatticeValueTo()
130 if (latticeValues[reg] != value in setLatticeValueTo()
131 || !latticeConstants[reg].equals(cst)) { in setLatticeValueTo()
132 latticeValues[reg] = value; in setLatticeValueTo()
133 latticeConstants[reg] = cst; in setLatticeValueTo()
[all …]
DSsaMethod.java383 public SsaInsn getDefinitionForRegister(int reg) { in getDefinitionForRegister() argument
389 return definitionList[reg]; in getDefinitionForRegister()
409 return definitionList[reg]; in getDefinitionForRegister()
473 int reg = oldSource.getReg(); in onSourceChanged() local
474 useList[reg].remove(insn); in onSourceChanged()
477 int reg = newSource.getReg(); in onSourceChanged() local
478 if (useList.length <= reg) { in onSourceChanged()
482 useList[reg].add(insn); in onSourceChanged()
505 int reg = sources.get(i).getReg(); in onSourcesChanged() local
506 useList[reg].add(insn); in onSourcesChanged()
[all …]
DSsaConverter.java330 for (int reg = 0, s = ssaMeth.getRegCount() ; reg < s ; reg++ ) { in placePhiFunctions()
335 worklist = (BitSet) (defsites[reg].clone()); in placePhiFunctions()
345 if (!phisites[reg].get(dfBlockIndex)) { in placePhiFunctions()
346 phisites[reg].set(dfBlockIndex); in placePhiFunctions()
349 = localInfo.getStarts(dfBlockIndex).get(reg); in placePhiFunctions()
352 ssaBlocks.get(dfBlockIndex).addPhiInsnForReg(reg); in placePhiFunctions()
357 if (!defsites[reg].get(dfBlockIndex)) { in placePhiFunctions()
DSsaRenamer.java206 int reg = ssaReg.getReg(); in setNameForSsaReg() local
209 ssaRegToLocalItems.ensureCapacity(reg + 1); in setNameForSsaReg()
210 while (ssaRegToLocalItems.size() <= reg) { in setNameForSsaReg()
214 ssaRegToLocalItems.set(reg, local); in setNameForSsaReg()
309 int reg = registerSpec.getReg(); in map() local
313 RegisterSpec newVersion = currentMapping[reg]; in map()
321 + " " + currentMapping[reg]); in map()
325 return registerSpec.withReg(currentMapping[reg].getReg()); in map()
DPhiInsn.java208 public boolean isRegASource(int reg) { in isRegASource() argument
215 if (o.regSpec.getReg() == reg) { in isRegASource()
275 public List<SsaBasicBlock> predBlocksForReg(int reg, SsaMethod ssaMeth) { in predBlocksForReg() argument
279 if (o.regSpec.getReg() == reg) { in predBlocksForReg()
/dalvik/libdex/
DDexFile.c1029 static void emitLocalCbIfLive (void *cnxt, int reg, u4 endAddress, in emitLocalCbIfLive() argument
1032 if (localCb != NULL && localInReg[reg].live) { in emitLocalCbIfLive()
1033 localCb(cnxt, reg, localInReg[reg].startAddress, endAddress, in emitLocalCbIfLive()
1034 localInReg[reg].name, in emitLocalCbIfLive()
1035 localInReg[reg].descriptor, in emitLocalCbIfLive()
1036 localInReg[reg].signature == NULL in emitLocalCbIfLive()
1037 ? "" : localInReg[reg].signature ); in emitLocalCbIfLive()
1093 int reg; in dexDecodeDebugInfo() local
1100 reg = argReg; in dexDecodeDebugInfo()
1113 localInReg[reg].name = name; in dexDecodeDebugInfo()
[all …]
/dalvik/dx/src/com/android/dx/ssa/back/
DRegisterAllocator.java81 protected final int getCategoryForSsaReg(int reg) { in getCategoryForSsaReg() argument
82 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getCategoryForSsaReg()
99 protected final RegisterSpec getDefinitionSpecForSsaReg(int reg) { in getDefinitionSpecForSsaReg() argument
100 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getDefinitionSpecForSsaReg()
112 protected boolean isDefinitionMoveParam(int reg) { in isDefinitionMoveParam() argument
113 SsaInsn defInsn = ssaMeth.getDefinitionForRegister(reg); in isDefinitionMoveParam()
136 RegisterSpec reg) { in insertMoveBefore() argument
162 reg.getTypeBearer()); in insertMoveBefore()
167 RegisterSpecList.make(reg)), block); in insertMoveBefore()
DInterferenceGraph.java93 public void mergeInterferenceSet(int reg, IntSet set) { in mergeInterferenceSet() argument
94 if (reg < interference.size()) { in mergeInterferenceSet()
95 set.merge(interference.get(reg)); in mergeInterferenceSet()
DFirstFitLocalCombiningAllocator.java159 for (RegisterSpec reg : e.getValue()) { in printLocalVars()
161 regs.append(reg.getReg()); in printLocalVars()
368 int reg; in findNextUnreservedRopReg() local
370 reg = reservedRopRegs.nextClearBit(startReg); in findNextUnreservedRopReg()
375 while (i < width && !reservedRopRegs.get(reg + i)) { in findNextUnreservedRopReg()
380 return reg; in findNextUnreservedRopReg()
383 reg = reservedRopRegs.nextClearBit(reg + i); in findNextUnreservedRopReg()
401 int reg; in findRopRegForLocal() local
403 reg = usedRopRegs.nextClearBit(startReg); in findRopRegForLocal()
408 while (i < width && !usedRopRegs.get(reg + i)) { in findRopRegForLocal()
[all …]
/dalvik/dx/src/com/android/dx/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/
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/vm/compiler/codegen/arm/
DThumbUtil.c45 ArmConditionCode cond, int reg,
60 #define NEXT_REG(reg) ((reg + 1) & 3) argument
330 ArmConditionCode cond, int reg, in genRegImmCheck() argument
334 newLIR2(cUnit, THUMB_CMP_RI8, reg, checkValue); in genRegImmCheck()
DThumb2Util.c45 ArmConditionCode cond, int reg,
60 #define NEXT_REG(reg) ((reg + 1) & 3) argument
473 ArmConditionCode cond, int reg, in genRegImmCheck() argument
478 if ((LOWREG(reg)) && (checkValue == 0) && in genRegImmCheck()
482 reg, 0); in genRegImmCheck()
484 newLIR2(cUnit, THUMB_CMP_RI8, reg, checkValue); in genRegImmCheck()

12