Home
last modified time | relevance | path

Searched refs:newReg (Results 1 – 7 of 7) sorted by relevance

/external/dexmaker/src/dx/java/com/android/dx/ssa/
DInterferenceRegisterMapper.java65 public void addMapping(int oldReg, int newReg, int category) { in addMapping() argument
66 super.addMapping(oldReg, newReg, category); in addMapping()
68 addInterfence(newReg, oldReg); in addMapping()
71 addInterfence(newReg + 1, oldReg); in addMapping()
84 public boolean interferes(int oldReg, int newReg, int category) { in interferes() argument
85 if (newReg >= newRegInterference.size()) { in interferes()
88 IntSet existing = newRegInterference.get(newReg); in interferes()
96 || (interferes(oldReg, newReg+1, category-1)); in interferes()
109 public boolean interferes(RegisterSpec oldSpec, int newReg) { in interferes() argument
110 return interferes(oldSpec.getReg(), newReg, oldSpec.getCategory()); in interferes()
[all …]
DBasicRegisterMapper.java56 int newReg; in map() local
58 newReg = oldToNew.get(registerSpec.getReg()); in map()
60 newReg = -1; in map()
63 if (newReg < 0) { in map()
67 return registerSpec.withReg(newReg); in map()
115 public void addMapping(int oldReg, int newReg, int category) { in addMapping() argument
123 oldToNew.set(oldReg, newReg); in addMapping()
125 if (runningCountNewRegisters < (newReg + category)) { in addMapping()
126 runningCountNewRegisters = newReg + category; in addMapping()
DConstCollector.java279 RegisterSpec newReg) { in fixLocalAssignment() argument
300 newReg = newReg.withLocalItem(local); in fixLocalAssignment()
304 new PlainInsn(Rops.opMarkLocal(newReg), in fixLocalAssignment()
306 RegisterSpecList.make(newReg)), in fixLocalAssignment()
348 final RegisterSpec newReg = newRegs.get(cst); in updateConstUses() local
350 if (newReg == null) { in updateConstUses()
382 return newReg.withLocalItem( in updateConstUses()
DEscapeAnalysis.java543 RegisterSpec newReg = in replaceDef() local
545 newRegs.add(newReg); in replaceDef()
546 insertPlainInsnBefore(def, RegisterSpecList.EMPTY, newReg, in replaceDef()
748 RegisterSpec newReg = in insertExceptionThrow() local
750 insertPlainInsnBefore(newInsn, RegisterSpecList.EMPTY, newReg, in insertExceptionThrow()
759 insertThrowingInsnBefore(newInsn2, RegisterSpecList.make(newReg, index), in insertExceptionThrow()
767 insertThrowingInsnBefore(newInsn3, RegisterSpecList.make(newReg), null, in insertExceptionThrow()
/external/dexmaker/src/dx/java/com/android/dx/ssa/back/
DFirstFitAllocator.java92 int newReg = 0; in allocateRegisters() local
99 newReg = paramNumberFromMoveParam(defInsn); in allocateRegisters()
101 mapper.addMapping(i, newReg, maxCategory); in allocateRegisters()
105 newReg = nextNewRegister; in allocateRegisters()
127 mapper.addMapping(j, newReg, maxCategory); in allocateRegisters()
DRegisterAllocator.java171 int newReg = newRegSpec.getReg(); in insertMoveBefore() local
182 interference.add(newReg, liveOutIter.next()); in insertMoveBefore()
190 interference.add(newReg, sources.get(i).getReg()); in insertMoveBefore()
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
DRegisterSpec.java482 public RegisterSpec withReg(int newReg) { in withReg() argument
483 if (reg == newReg) { in withReg()
487 return makeLocalOptional(newReg, type, local); in withReg()