com.oracle.truffle.js.builtins.ArrayBufferFunctionBuiltinsFactory 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.ArrayBufferFunctionBuiltins.JSIsArrayBufferViewNode;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.function.JSBuiltin;
import com.oracle.truffle.js.runtime.JSContext;
@GeneratedBy(ArrayBufferFunctionBuiltins.class)
@SuppressWarnings("javadoc")
public final class ArrayBufferFunctionBuiltinsFactory {
/**
* Debug Info:
* Specialization {@link JSIsArrayBufferViewNode#isArrayBufferView}
* Activation probability: 1.00000
* With/without class size: 16/0 bytes
*
*/
@GeneratedBy(JSIsArrayBufferViewNode.class)
@SuppressWarnings("javadoc")
public static final class JSIsArrayBufferViewNodeGen extends JSIsArrayBufferViewNode {
@Child private JavaScriptNode arguments0_;
private JSIsArrayBufferViewNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) {
super(context, builtin);
this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null;
}
@Override
public JavaScriptNode[] getArguments() {
return new JavaScriptNode[] {this.arguments0_};
}
@Override
public Object execute(VirtualFrame frameValue) {
Object arguments0Value_ = this.arguments0_.execute(frameValue);
return isArrayBufferView(arguments0Value_);
}
@NeverDefault
public static JSIsArrayBufferViewNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) {
return new JSIsArrayBufferViewNodeGen(context, builtin, arguments);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy