org.jruby.truffle.interop.CheckSubNodeGen Maven / Gradle / Ivy
The newest version!
// CheckStyle: start generated
package org.jruby.truffle.interop;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.UnsupportedSpecializationException;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.interop.TruffleObject;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
@GeneratedBy(CheckSub.class)
public final class CheckSubNodeGen extends CheckSub {
@CompilationFinal private boolean seenUnsupported0;
private CheckSubNodeGen() {
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
if (arg0Value instanceof TruffleObject) {
TruffleObject arg0Value_ = (TruffleObject) arg0Value;
return this.testWithTarget(arg0Value_);
}
throw unsupported(arg0Value);
}
private UnsupportedSpecializationException unsupported(Object arg0Value) {
if (!seenUnsupported0) {
CompilerDirectives.transferToInterpreterAndInvalidate();
seenUnsupported0 = true;
}
return new UnsupportedSpecializationException(this, new Node[] {null}, arg0Value);
}
public static CheckSub create() {
return new CheckSubNodeGen();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy