comparison graal/com.oracle.max.cri/src/com/sun/cri/xir/XirTemplate.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children
comparison
equal deleted inserted replaced
4141:04d21be7a24f 4142:bc8527f3071c
159 159
160 assert fastPath != null; 160 assert fastPath != null;
161 assert labels != null; 161 assert labels != null;
162 assert parameters != null; 162 assert parameters != null;
163 163
164 List<XirOperand> inputOperands = new ArrayList<XirOperand>(4); 164 List<XirOperand> inputOperandList = new ArrayList<>(4);
165 List<XirOperand> inputTempOperands = new ArrayList<XirOperand>(4); 165 List<XirOperand> inputTempOperandList = new ArrayList<>(4);
166 List<XirOperand> tempOperands = new ArrayList<XirOperand>(4); 166 List<XirOperand> tempOperandList = new ArrayList<>(4);
167 167
168 parameterDestroyed = new boolean[parameters.length]; 168 parameterDestroyed = new boolean[parameters.length];
169 for (int i = 0; i < parameters.length; i++) { 169 for (int i = 0; i < parameters.length; i++) {
170 for (XirInstruction ins : fastPath) { 170 for (XirInstruction ins : fastPath) {
171 if (ins.result == parameters[i]) { 171 if (ins.result == parameters[i]) {
181 } 181 }
182 } 182 }
183 } 183 }
184 184
185 if (parameterDestroyed[i]) { 185 if (parameterDestroyed[i]) {
186 inputTempOperands.add(parameters[i]); 186 inputTempOperandList.add(parameters[i]);
187 } else { 187 } else {
188 inputOperands.add(parameters[i]); 188 inputOperandList.add(parameters[i]);
189 } 189 }
190 } 190 }
191 191
192 for (XirTemp temp : temps) { 192 for (XirTemp temp : temps) {
193 if (temp.reserve) { 193 if (temp.reserve) {
194 tempOperands.add(temp); 194 tempOperandList.add(temp);
195 } 195 }
196 } 196 }
197 197
198 this.inputOperands = inputOperands.toArray(new XirOperand[inputOperands.size()]); 198 this.inputOperands = inputOperandList.toArray(new XirOperand[inputOperandList.size()]);
199 this.inputTempOperands = inputTempOperands.toArray(new XirOperand[inputTempOperands.size()]); 199 this.inputTempOperands = inputTempOperandList.toArray(new XirOperand[inputTempOperandList.size()]);
200 this.tempOperands = tempOperands.toArray(new XirOperand[tempOperands.size()]); 200 this.tempOperands = tempOperandList.toArray(new XirOperand[tempOperandList.size()]);
201 } 201 }
202 202
203 /** 203 /**
204 * Convenience getter that returns the value at a given index in the {@link #parameterDestroyed} array. 204 * Convenience getter that returns the value at a given index in the {@link #parameterDestroyed} array.
205 * @param index 205 * @param index