# HG changeset patch # User Josef Eisl # Date 1442586758 -7200 # Node ID b7ccafc71a9d24ebe762b4898bc732bed00cf367 # Parent 36e61de8d9716280c9530ee6e2332707e0f99766 AMD64: Remove StoreRbpOp. diff -r 36e61de8d971 -r b7ccafc71a9d graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotMove.java --- a/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotMove.java Tue Sep 22 18:04:38 2015 -0700 +++ b/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotMove.java Fri Sep 18 16:32:38 2015 +0200 @@ -31,14 +31,12 @@ import static jdk.internal.jvmci.code.ValueUtil.isStackSlot; import jdk.internal.jvmci.amd64.AMD64Kind; import jdk.internal.jvmci.code.Register; -import jdk.internal.jvmci.code.StackSlotValue; import jdk.internal.jvmci.common.JVMCIError; import jdk.internal.jvmci.hotspot.HotSpotMetaspaceConstant; import jdk.internal.jvmci.hotspot.HotSpotObjectConstant; import jdk.internal.jvmci.hotspot.HotSpotVMConfig.CompressEncoding; import jdk.internal.jvmci.meta.AllocatableValue; import jdk.internal.jvmci.meta.Constant; -import jdk.internal.jvmci.meta.Value; import com.oracle.graal.asm.Label; import com.oracle.graal.asm.amd64.AMD64Address; @@ -47,7 +45,6 @@ import com.oracle.graal.compiler.common.GraalOptions; import com.oracle.graal.lir.LIRInstructionClass; import com.oracle.graal.lir.StandardOp.LoadConstantOp; -import com.oracle.graal.lir.StandardOp.StackStoreOp; import com.oracle.graal.lir.amd64.AMD64LIRInstruction; import com.oracle.graal.lir.amd64.AMD64Move; import com.oracle.graal.lir.asm.CompilationResultBuilder; @@ -208,42 +205,6 @@ } } - public static final class StoreRbpOp extends AMD64LIRInstruction implements StackStoreOp { - public static final LIRInstructionClass TYPE = LIRInstructionClass.create(StoreRbpOp.class); - - @Def({REG, HINT}) protected AllocatableValue result; - @Use({REG}) protected AllocatableValue input; - @Def({STACK}) protected StackSlotValue stackSlot; - - protected StoreRbpOp(AllocatableValue result, AllocatableValue input, StackSlotValue stackSlot) { - super(TYPE); - assert result.getLIRKind().equals(input.getLIRKind()) && stackSlot.getLIRKind().equals(input.getLIRKind()) : String.format("result %s, input %s, stackSlot %s", result.getLIRKind(), - input.getLIRKind(), stackSlot.getLIRKind()); - this.result = result; - this.input = input; - this.stackSlot = stackSlot; - } - - public Value getInput() { - return input; - } - - public AllocatableValue getResult() { - return result; - } - - public StackSlotValue getStackSlot() { - return stackSlot; - } - - @Override - public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) { - AMD64Kind kind = (AMD64Kind) result.getPlatformKind(); - AMD64Move.move(kind, crb, masm, result, input); - AMD64Move.move(kind, crb, masm, stackSlot, input); - } - } - public static final class UncompressPointer extends AMD64LIRInstruction { public static final LIRInstructionClass TYPE = LIRInstructionClass.create(UncompressPointer.class);