Search in sources :

Example 1 with RawConstant

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

the class BytecodeParser method getJsrConstant.

private ConstantNode getJsrConstant(long bci) {
    JavaConstant nextBciConstant = new RawConstant(bci);
    Stamp nextBciStamp = StampFactory.forConstant(nextBciConstant);
    ConstantNode nextBciNode = new ConstantNode(nextBciConstant, nextBciStamp);
    return graph.unique(nextBciNode);
}
Also used : ConstantNode(org.graalvm.compiler.nodes.ConstantNode) LogicConstantNode(org.graalvm.compiler.nodes.LogicConstantNode) ObjectStamp(org.graalvm.compiler.core.common.type.ObjectStamp) Stamp(org.graalvm.compiler.core.common.type.Stamp) IntegerStamp(org.graalvm.compiler.core.common.type.IntegerStamp) JavaConstant(jdk.vm.ci.meta.JavaConstant) RawConstant(jdk.vm.ci.meta.RawConstant)

Aggregations

JavaConstant (jdk.vm.ci.meta.JavaConstant)1 RawConstant (jdk.vm.ci.meta.RawConstant)1 IntegerStamp (org.graalvm.compiler.core.common.type.IntegerStamp)1 ObjectStamp (org.graalvm.compiler.core.common.type.ObjectStamp)1 Stamp (org.graalvm.compiler.core.common.type.Stamp)1 ConstantNode (org.graalvm.compiler.nodes.ConstantNode)1 LogicConstantNode (org.graalvm.compiler.nodes.LogicConstantNode)1