All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.truffle.language.threadlocal.WrapInThreadLocalNodeGen Maven / Gradle / Ivy

The newest version!
// CheckStyle: start generated
package org.jruby.truffle.language.threadlocal;

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(WrapInThreadLocalNode.class)
public final class WrapInThreadLocalNodeGen extends WrapInThreadLocalNode {

    @Child private RubyNode value_;

    private WrapInThreadLocalNodeGen(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.wrap(valueValue_);
    }

    @Override
    public void executeVoid(VirtualFrame frameValue) {
        execute(frameValue);
        return;
    }

    public static WrapInThreadLocalNode create(RubyNode value) {
        return new WrapInThreadLocalNodeGen(value);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy