Search in sources :

Example 6 with VMConstant

use of jdk.vm.ci.meta.VMConstant in project graal by oracle.

the class CompilationResultBuilder method recordInlineDataInCode.

public void recordInlineDataInCode(Constant data) {
    assert data != null;
    int pos = asm.position();
    debug.log("Inline data in code: pos = %d, data = %s", pos, data);
    if (data instanceof VMConstant) {
        compilationResult.recordDataPatch(pos, new ConstantReference((VMConstant) data));
    }
}
Also used : ConstantReference(jdk.vm.ci.code.site.ConstantReference) VMConstant(jdk.vm.ci.meta.VMConstant)

Aggregations

VMConstant (jdk.vm.ci.meta.VMConstant)6 ConstantReference (jdk.vm.ci.code.site.ConstantReference)3 JavaConstant (jdk.vm.ci.meta.JavaConstant)3 Constant (jdk.vm.ci.meta.Constant)2 OperandSize (org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize)2 LIRValueUtil.asJavaConstant (org.graalvm.compiler.lir.LIRValueUtil.asJavaConstant)2 LIRValueUtil.isJavaConstant (org.graalvm.compiler.lir.LIRValueUtil.isJavaConstant)2 AMD64BinaryConsumer (org.graalvm.compiler.lir.amd64.AMD64BinaryConsumer)2 ByteBuffer (java.nio.ByteBuffer)1 DataPatch (jdk.vm.ci.code.site.DataPatch)1 HotSpotConstant (jdk.vm.ci.hotspot.HotSpotConstant)1 JavaKind (jdk.vm.ci.meta.JavaKind)1 SerializableConstant (jdk.vm.ci.meta.SerializableConstant)1 AMD64MIOp (org.graalvm.compiler.asm.amd64.AMD64Assembler.AMD64MIOp)1 AMD64RMOp (org.graalvm.compiler.asm.amd64.AMD64Assembler.AMD64RMOp)1 Data (org.graalvm.compiler.code.DataSection.Data)1 Patches (org.graalvm.compiler.code.DataSection.Patches)1 SerializableData (org.graalvm.compiler.code.DataSection.SerializableData)1 ZeroData (org.graalvm.compiler.code.DataSection.ZeroData)1 CounterKey (org.graalvm.compiler.debug.CounterKey)1