comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/RegisterVerifier.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents 0f8c6dbf68be
children 85a836bcd796
comparison
equal deleted inserted replaced
7529:4a11124a3563 7530:5e3d1a68664e
212 if (GraalOptions.TraceLinearScanLevel >= 4) { 212 if (GraalOptions.TraceLinearScanLevel >= 4) {
213 TTY.println(op.toStringWithIdPrefix()); 213 TTY.println(op.toStringWithIdPrefix());
214 } 214 }
215 215
216 ValueProcedure useProc = new ValueProcedure() { 216 ValueProcedure useProc = new ValueProcedure() {
217
217 @Override 218 @Override
218 public Value doValue(Value operand, OperandMode mode, EnumSet<OperandFlag> flags) { 219 public Value doValue(Value operand, OperandMode mode, EnumSet<OperandFlag> flags) {
219 if (LinearScan.isVariableOrRegister(operand) && allocator.isProcessed(operand)) { 220 if (LinearScan.isVariableOrRegister(operand) && allocator.isProcessed(operand)) {
220 Interval interval = intervalAt(operand); 221 Interval interval = intervalAt(operand);
221 if (op.id() != -1) { 222 if (op.id() != -1) {
227 return operand; 228 return operand;
228 } 229 }
229 }; 230 };
230 231
231 ValueProcedure defProc = new ValueProcedure() { 232 ValueProcedure defProc = new ValueProcedure() {
233
232 @Override 234 @Override
233 public Value doValue(Value operand, OperandMode mode, EnumSet<OperandFlag> flags) { 235 public Value doValue(Value operand, OperandMode mode, EnumSet<OperandFlag> flags) {
234 if (LinearScan.isVariableOrRegister(operand) && allocator.isProcessed(operand)) { 236 if (LinearScan.isVariableOrRegister(operand) && allocator.isProcessed(operand)) {
235 Interval interval = intervalAt(operand); 237 Interval interval = intervalAt(operand);
236 if (op.id() != -1) { 238 if (op.id() != -1) {
250 for (Register r : allocator.frameMap.registerConfig.getCallerSaveRegisters()) { 252 for (Register r : allocator.frameMap.registerConfig.getCallerSaveRegisters()) {
251 statePut(inputState, r.asValue(), null); 253 statePut(inputState, r.asValue(), null);
252 } 254 }
253 } 255 }
254 op.forEachAlive(useProc); 256 op.forEachAlive(useProc);
255 // set temp operands (some operations use temp operands also as output operands, so can't set them null) 257 // set temp operands (some operations use temp operands also as output operands, so
258 // can't set them null)
256 op.forEachTemp(defProc); 259 op.forEachTemp(defProc);
257 // set output operands 260 // set output operands
258 op.forEachOutput(defProc); 261 op.forEachOutput(defProc);
259 } 262 }
260 } 263 }