comparison graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64NodeLIRBuilder.java @ 16564:688f84e397a3

Move the target method from MethodCallTargetNode and LoweredCallTargetNode to their superclass CallTargetNode
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 14 Jul 2014 14:00:55 +0200
parents c3260b05fd26
children a2ec1ac769e4
comparison
equal deleted inserted replaced
16563:1e63cb55f61d 16564:688f84e397a3
50 50
51 @Override 51 @Override
52 protected void emitIndirectCall(IndirectCallTargetNode callTarget, Value result, Value[] parameters, Value[] temps, LIRFrameState callState) { 52 protected void emitIndirectCall(IndirectCallTargetNode callTarget, Value result, Value[] parameters, Value[] temps, LIRFrameState callState) {
53 AllocatableValue targetAddress = AMD64.rax.asValue(); 53 AllocatableValue targetAddress = AMD64.rax.asValue();
54 gen.emitMove(targetAddress, operand(callTarget.computedAddress())); 54 gen.emitMove(targetAddress, operand(callTarget.computedAddress()));
55 append(new AMD64Call.IndirectCallOp(callTarget.target(), result, parameters, temps, targetAddress, callState)); 55 append(new AMD64Call.IndirectCallOp(callTarget.targetMethod(), result, parameters, temps, targetAddress, callState));
56 } 56 }
57 57
58 @Override 58 @Override
59 protected boolean peephole(ValueNode valueNode) { 59 protected boolean peephole(ValueNode valueNode) {
60 if ((valueNode instanceof IntegerDivNode) || (valueNode instanceof IntegerRemNode)) { 60 if ((valueNode instanceof IntegerDivNode) || (valueNode instanceof IntegerRemNode)) {