# HG changeset patch # User Josef Eisl # Date 1430126515 -7200 # Node ID a5ea5041155dd66f3b9315802316e729e65782a9 # Parent d2bae7605fe4a07ffea83194dbaaf613ee99d9d7 SpillMoveFactory: add createStackMove. diff -r d2bae7605fe4 -r a5ea5041155d graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java Mon Apr 27 10:57:34 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java Mon Apr 27 11:21:55 2015 +0200 @@ -29,12 +29,17 @@ import com.oracle.graal.compiler.common.cfg.*; import com.oracle.graal.compiler.common.spi.*; import com.oracle.graal.lir.*; +import com.oracle.graal.lir.StandardOp.StackMove; public interface LIRGeneratorTool extends ArithmeticLIRGenerator, BenchmarkCounterFactory { public interface SpillMoveFactory { LIRInstruction createMove(AllocatableValue result, Value input); + + default LIRInstruction createStackMove(AllocatableValue result, Value input) { + return new StackMove(result, input); + } } public abstract class BlockScope implements AutoCloseable {