org.jruby.truffle.platform.graal.AssertConstantNodeGen Maven / Gradle / Ivy
The newest version!
// CheckStyle: start generated
package org.jruby.truffle.platform.graal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.NodeCost;
import org.jruby.truffle.language.RubyNode;
@GeneratedBy(AssertConstantNode.class)
public final class AssertConstantNodeGen extends AssertConstantNode {
@Child private RubyNode value_;
private AssertConstantNodeGen(RubyNode value) {
this.value_ = value;
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
@Override
public Object execute(VirtualFrame frameValue) {
Object valueValue_ = value_.execute(frameValue);
return this.assertCompilationConstant(valueValue_);
}
@Override
public void executeVoid(VirtualFrame frameValue) {
execute(frameValue);
return;
}
public static AssertConstantNode create(RubyNode value) {
return new AssertConstantNodeGen(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy