com.oracle.truffle.js.builtins.ProxyFunctionBuiltinsFactory Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.js.builtins;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.js.builtins.ProxyFunctionBuiltins.RevocableNode;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.function.JSBuiltin;
import com.oracle.truffle.js.runtime.JSContext;
@GeneratedBy(ProxyFunctionBuiltins.class)
@SuppressWarnings("javadoc")
public final class ProxyFunctionBuiltinsFactory {
/**
* Debug Info:
* Specialization {@link RevocableNode#doDefault}
* Activation probability: 1.00000
* With/without class size: 16/0 bytes
*
*/
@GeneratedBy(RevocableNode.class)
@SuppressWarnings("javadoc")
public static final class RevocableNodeGen extends RevocableNode {
@Child private JavaScriptNode arguments0_;
@Child private JavaScriptNode arguments1_;
private RevocableNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) {
super(context, builtin);
this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null;
this.arguments1_ = arguments != null && 1 < arguments.length ? arguments[1] : null;
}
@Override
public JavaScriptNode[] getArguments() {
return new JavaScriptNode[] {this.arguments0_, this.arguments1_};
}
@Override
public Object execute(VirtualFrame frameValue) {
Object arguments0Value_ = this.arguments0_.execute(frameValue);
Object arguments1Value_ = this.arguments1_.execute(frameValue);
return doDefault(frameValue, arguments0Value_, arguments1Value_);
}
@NeverDefault
public static RevocableNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) {
return new RevocableNodeGen(context, builtin, arguments);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy