/dalvik/libdex/ |
D | DexDebugInfo.cpp | 68 static void emitLocalCbIfLive(void *cnxt, int reg, u4 endAddress, in emitLocalCbIfLive() argument 71 if (localCb != NULL && localInReg[reg].live) { in emitLocalCbIfLive() 72 localCb(cnxt, reg, localInReg[reg].startAddress, endAddress, in emitLocalCbIfLive() 73 localInReg[reg].name, in emitLocalCbIfLive() 74 localInReg[reg].descriptor, in emitLocalCbIfLive() 75 localInReg[reg].signature == NULL in emitLocalCbIfLive() 76 ? "" : localInReg[reg].signature ); in emitLocalCbIfLive() 129 int reg; in dexDecodeDebugInfo0() local 137 reg = argReg; in dexDecodeDebugInfo0() 150 localInReg[reg].name = name; in dexDecodeDebugInfo0() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | RegisterSpec.java | 44 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 …]
|
D | RegisterSpecSet.java | 167 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 …]
|
D | RegisterSpecList.java | 144 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/ |
D | RegisterSpec.java | 49 private final int reg; field in RegisterSpec 69 private static RegisterSpec intern(int reg, TypeBearer type, in intern() argument 72 interningItem.set(reg, type, local); in intern() 94 public static RegisterSpec make(int reg, TypeBearer type) { in make() argument 95 return intern(reg, type, null); in make() 109 public static RegisterSpec make(int reg, TypeBearer type, in make() argument 115 return intern(reg, type, local); in make() 131 int reg, TypeBearer type, LocalItem local) { in makeLocalOptional() argument 133 return intern(reg, type, local); in makeLocalOptional() 142 public static String regString(int reg) { in regString() argument [all …]
|
D | RegisterSpecSet.java | 166 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/ |
D | DebugInfoDecoder.java | 153 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/dex/file/ |
D | DebugInfoDecoder.java | 164 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() 188 address, isStart ? "start" : "end", reg, in toString() 299 int reg = Leb128.readUnsignedLeb128(bs); in decode0() local 303 address, true, reg, nameIdx, typeIdx, 0); in decode0() 306 lastEntryForReg[reg] = le; in decode0() 311 int reg = Leb128.readUnsignedLeb128(bs); in decode0() local 316 address, true, reg, nameIdx, typeIdx, sigIdx); in decode0() 319 lastEntryForReg[reg] = le; in decode0() [all …]
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | PhiTypeResolver.java | 69 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()
|
D | SsaInsn.java | 118 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()
|
D | SCCP.java | 113 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 …]
|
D | SsaMethod.java | 385 public SsaInsn getDefinitionForRegister(int reg) { in getDefinitionForRegister() argument 391 return definitionList[reg]; in getDefinitionForRegister() 414 return definitionList[reg]; in getDefinitionForRegister() 481 int reg = oldSource.getReg(); in onSourceChanged() local 482 useList[reg].remove(insn); in onSourceChanged() 485 int reg = newSource.getReg(); in onSourceChanged() local 486 if (useList.length <= reg) { in onSourceChanged() 490 useList[reg].add(insn); in onSourceChanged() 513 int reg = sources.get(i).getReg(); in onSourcesChanged() local 514 useList[reg].add(insn); in onSourcesChanged() [all …]
|
D | SsaConverter.java | 356 for (int reg = 0, s = regCount; reg < s; reg++) { in placePhiFunctions() 361 worklist = (BitSet) (defsites[reg].clone()); in placePhiFunctions() 371 if (!phisites[reg].get(dfBlockIndex)) { in placePhiFunctions() 372 phisites[reg].set(dfBlockIndex); in placePhiFunctions() 374 int tReg = reg + threshold; in placePhiFunctions() 384 if (!defsites[reg].get(dfBlockIndex)) { in placePhiFunctions()
|
D | SsaRenamer.java | 228 int reg = ssaReg.getReg(); in setNameForSsaReg() local 231 ssaRegToLocalItems.ensureCapacity(reg + 1); in setNameForSsaReg() 232 while (ssaRegToLocalItems.size() <= reg) { in setNameForSsaReg() 236 ssaRegToLocalItems.set(reg, local); in setNameForSsaReg() 343 int reg = registerSpec.getReg(); in map() local 347 RegisterSpec newVersion = currentMapping[reg]; in map() 355 + " " + currentMapping[reg]); in map() 359 return registerSpec.withReg(currentMapping[reg].getReg()); in map()
|
/dalvik/dx/src/com/android/dx/ssa/back/ |
D | RegisterAllocator.java | 79 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()
|
D | InterferenceGraph.java | 83 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()
|
D | FirstFitLocalCombiningAllocator.java | 214 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/ |
D | Form31c.java | 77 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()
|
D | Form21c.java | 77 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/ |
D | Form31c.java | 78 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()
|
D | Form21c.java | 80 RegisterSpec reg; in isCompatible() local 84 reg = regs.get(0); in isCompatible() 92 reg = regs.get(0); in isCompatible() 93 if (reg.getReg() != regs.get(1).getReg()) { in isCompatible() 103 if (!unsignedFitsInByte(reg.getReg())) { in isCompatible()
|
D | Form35c.java | 107 RegisterSpec reg = regs.get(i); in compatibleRegs() local 114 bits.set(i, unsignedFitsInNibble(reg.getReg() + in compatibleRegs() 115 reg.getCategory() - 1)); in compatibleRegs()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | LocalList.java | 398 int reg = e.getRegister(); in debugVerify0() local 401 Entry already = active[reg]; in debugVerify0() 409 active[reg] = e; in debugVerify0() 411 if (active[reg] == null) { in debugVerify0() 424 if (test.getRegisterSpec().getReg() == reg) { in debugVerify0() 448 active[reg] = null; in debugVerify0() 493 private void aboutToProcess(int address, int reg) { in aboutToProcess() argument 504 if (first || (reg >= endIndices.length)) { in aboutToProcess() 511 int newSz = reg + 1; in aboutToProcess()
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | LocalList.java | 399 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/tests/137-dexmerger-dex38/ |
D | expected.txt | 27 0x0000 - 0x0004 reg=0 this Linvokecustom/Super; 55 0x0000 - 0x0008 reg=2 this Linvokecustom/Super; 114 0x0000 - 0x0007 reg=1 this Linvokecustom/InvokeCustom1; 151 0x0000 - 0x0025 reg=3 this Linvokecustom/InvokeCustom1; 152 0x0000 - 0x0025 reg=4 (null) I 186 0x0000 - 0x0024 reg=3 (null) Ljava/lang/invoke/MethodHandles$Lookup; 187 0x0000 - 0x0024 reg=4 (null) Ljava/lang/String; 188 0x0000 - 0x0024 reg=5 (null) Ljava/lang/invoke/MethodType; 189 0x0000 - 0x0024 reg=6 (null) Ljava/lang/invoke/MethodHandle; 222 0x0000 - 0x001d reg=2 (null) Ljava/lang/invoke/MethodHandles$Lookup; [all …]
|