com.oracle.truffle.api.interop.java.ExecuteNodeSubNodeGen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-api Show documentation
Show all versions of truffle-api Show documentation
Truffle is a multi-language framework for executing dynamic languages
that achieves high performance when combined with Graal.
// CheckStyle: start generated
package com.oracle.truffle.api.interop.java;
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.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
@GeneratedBy(ExecuteNodeSub.class)
final class ExecuteNodeSubNodeGen extends ExecuteNodeSub {
@CompilationFinal private boolean seenUnsupported0;
private ExecuteNodeSubNodeGen() {
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value, Object arg1Value) {
if (arg0Value instanceof JavaFunctionObject && arg1Value instanceof Object[]) {
JavaFunctionObject arg0Value_ = (JavaFunctionObject) arg0Value;
Object[] arg1Value_ = (Object[]) arg1Value;
return this.accessWithTarget(frameValue, arg0Value_, arg1Value_);
}
throw unsupported(arg0Value, arg1Value);
}
private UnsupportedSpecializationException unsupported(Object arg0Value, Object arg1Value) {
if (!seenUnsupported0) {
CompilerDirectives.transferToInterpreterAndInvalidate();
seenUnsupported0 = true;
}
return new UnsupportedSpecializationException(this, new Node[] {null, null}, arg0Value, arg1Value);
}
public static ExecuteNodeSub create() {
return new ExecuteNodeSubNodeGen();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy