Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/ConstantStackMoveTest.java @ 22604:b00cc0475f31
Update jvmci import: Refactoring: Rename Kind to JavaKind.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 08 Sep 2015 19:57:39 +0200 |
parents | 3285aa5a60f8 |
children | 05183a084a08 |
comparison
equal
deleted
inserted
replaced
22603:6d339ba0edc5 | 22604:b00cc0475f31 |
---|---|
49 @Override | 49 @Override |
50 public void generate(LIRGeneratorTool gen) { | 50 public void generate(LIRGeneratorTool gen) { |
51 FrameMapBuilder frameMapBuilder = gen.getResult().getFrameMapBuilder(); | 51 FrameMapBuilder frameMapBuilder = gen.getResult().getFrameMapBuilder(); |
52 // create slots | 52 // create slots |
53 PrimitiveConstant constantValue = JavaConstant.forBoxedPrimitive(primitive); | 53 PrimitiveConstant constantValue = JavaConstant.forBoxedPrimitive(primitive); |
54 StackSlotValue s1 = frameMapBuilder.allocateSpillSlot(gen.target().getLIRKind(constantValue.getKind())); | 54 StackSlotValue s1 = frameMapBuilder.allocateSpillSlot(gen.target().getLIRKind(constantValue.getJavaKind())); |
55 // move stuff around | 55 // move stuff around |
56 gen.emitMoveConstant(s1, constantValue); | 56 gen.emitMoveConstant(s1, constantValue); |
57 gen.emitBlackhole(s1); | 57 gen.emitBlackhole(s1); |
58 setResult(gen.emitMove(s1)); | 58 setResult(gen.emitMove(s1)); |
59 } | 59 } |