comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2805:c3f64b66fc78

Towards removing the next pointer from Constant and ArithmeticOp
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Fri, 27 May 2011 19:57:56 +0200
parents 2af109bec0c0
children f35c6f8f0f5d
comparison
equal deleted inserted replaced
2804:095162a84dcc 2805:c3f64b66fc78
1464 assert operand.isLegal() : "must be evaluated now"; 1464 assert operand.isLegal() : "must be evaluated now";
1465 } 1465 }
1466 } 1466 }
1467 } 1467 }
1468 1468
1469 protected LIRDebugInfo stateFor(Instruction x) { 1469 protected LIRDebugInfo stateFor(Value x) {
1470 assert lastState != null : "must have state before instruction for " + x; 1470 assert lastState != null : "must have state before instruction for " + x;
1471 return stateFor(x, lastState); 1471 return stateFor(x, lastState);
1472 } 1472 }
1473 1473
1474 protected LIRDebugInfo stateFor(Instruction x, FrameState state) { 1474 protected LIRDebugInfo stateFor(Value x, FrameState state) {
1475 if (compilation.placeholderState != null) { 1475 if (compilation.placeholderState != null) {
1476 state = compilation.placeholderState; 1476 state = compilation.placeholderState;
1477 } 1477 }
1478 1478
1479 assert state != null; 1479 assert state != null;
1538 } else if (instruction instanceof Constant) { 1538 } else if (instruction instanceof Constant) {
1539 operand = operandForInstruction(instruction); 1539 operand = operandForInstruction(instruction);
1540 } 1540 }
1541 } 1541 }
1542 // the value must be a constant or have a valid operand 1542 // the value must be a constant or have a valid operand
1543 assert operand.isLegal() : "this root has not been visited yet"; 1543 assert operand.isLegal() : "this root has not been visited yet; instruction=" + instruction;
1544 return operand; 1544 return operand;
1545 } 1545 }
1546 1546
1547 /** 1547 /**
1548 * Gets the ABI specific operand used to return a value of a given kind from a method. 1548 * Gets the ABI specific operand used to return a value of a given kind from a method.