Lines Matching defs:newReg
63 public void addMapping(int oldReg, int newReg, int category) {
64 super.addMapping(oldReg, newReg, category);
66 addInterfence(newReg, oldReg);
69 addInterfence(newReg + 1, oldReg);
75 * with what currently maps to {@code newReg}.
78 * @param newReg new namespace register
80 * @return true if oldReg will interfere with newReg
82 public boolean interferes(int oldReg, int newReg, int category) {
83 if (newReg >= newRegInterference.size()) {
86 IntSet existing = newRegInterference.get(newReg);
94 || (interferes(oldReg, newReg+1, category-1));
101 * with what currently maps to {@code newReg}.
104 * @param newReg new namespace register
105 * @return true if oldReg will interfere with newReg
107 public boolean interferes(RegisterSpec oldSpec, int newReg) {
108 return interferes(oldSpec.getReg(), newReg, oldSpec.getCategory());
115 * @param newReg register in new namespace
118 private void addInterfence(int newReg, int oldReg) {
119 newRegInterference.ensureCapacity(newReg + 1);
121 while (newReg >= newRegInterference.size()) {
122 newRegInterference.add(new BitIntSet(newReg +1));
126 oldReg, newRegInterference.get(newReg));
135 * @param newReg {@code >= 0;} new-namespace register
142 int newReg, int targetCategory) {
150 * If oldSpec is a category-2 register, then check both newReg
151 * and newReg - 1.
153 if (r == newReg
154 || (oldSpec.getCategory() == 2 && (r + 1) == newReg)
155 || (targetCategory == 2 && (r == newReg + 1))) {