Search in sources :

Example 1 with NullCheckOp

use of org.graalvm.compiler.lir.sparc.SPARCMove.NullCheckOp in project graal by oracle.

the class SPARCHotSpotLIRGenerator method emitNullCheck.

@Override
public void emitNullCheck(Value address, LIRFrameState state) {
    PlatformKind kind = address.getPlatformKind();
    if (kind == WORD) {
        CompressEncoding encoding = config.getOopEncoding();
        Value uncompressed = emitUncompress(address, encoding, false);
        append(new NullCheckOp(asAddressValue(uncompressed), state));
    } else {
        super.emitNullCheck(address, state);
    }
}
Also used : NullCheckOp(org.graalvm.compiler.lir.sparc.SPARCMove.NullCheckOp) CompressEncoding(org.graalvm.compiler.core.common.CompressEncoding) LIRValueUtil.isConstantValue(org.graalvm.compiler.lir.LIRValueUtil.isConstantValue) Value(jdk.vm.ci.meta.Value) AllocatableValue(jdk.vm.ci.meta.AllocatableValue) SPARCImmediateAddressValue(org.graalvm.compiler.lir.sparc.SPARCImmediateAddressValue) RegisterValue(jdk.vm.ci.code.RegisterValue) SPARCAddressValue(org.graalvm.compiler.lir.sparc.SPARCAddressValue) PlatformKind(jdk.vm.ci.meta.PlatformKind)

Example 2 with NullCheckOp

use of org.graalvm.compiler.lir.sparc.SPARCMove.NullCheckOp in project graal by oracle.

the class SPARCLIRGenerator method emitNullCheck.

@Override
public void emitNullCheck(Value address, LIRFrameState state) {
    PlatformKind kind = address.getPlatformKind();
    assert kind == XWORD : address + " - " + kind + " not an object!";
    append(new NullCheckOp(asAddressValue(address), state));
}
Also used : NullCheckOp(org.graalvm.compiler.lir.sparc.SPARCMove.NullCheckOp) PlatformKind(jdk.vm.ci.meta.PlatformKind)

Aggregations

PlatformKind (jdk.vm.ci.meta.PlatformKind)2 NullCheckOp (org.graalvm.compiler.lir.sparc.SPARCMove.NullCheckOp)2 RegisterValue (jdk.vm.ci.code.RegisterValue)1 AllocatableValue (jdk.vm.ci.meta.AllocatableValue)1 Value (jdk.vm.ci.meta.Value)1 CompressEncoding (org.graalvm.compiler.core.common.CompressEncoding)1 LIRValueUtil.isConstantValue (org.graalvm.compiler.lir.LIRValueUtil.isConstantValue)1 SPARCAddressValue (org.graalvm.compiler.lir.sparc.SPARCAddressValue)1 SPARCImmediateAddressValue (org.graalvm.compiler.lir.sparc.SPARCImmediateAddressValue)1