com.oracle.truffle.js.builtins.commonjs.CommonJSModuleGetterBuiltinNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.js.builtins.commonjs;
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.commonjs.GlobalCommonJSRequireBuiltins.GlobalRequire;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.function.JSBuiltin;
import com.oracle.truffle.js.runtime.JSContext;
/**
* Debug Info:
* Specialization {@link CommonJSModuleGetterBuiltin#getObject}
* Activation probability: 1.00000
* With/without class size: 16/0 bytes
*
*/
@GeneratedBy(CommonJSModuleGetterBuiltin.class)
@SuppressWarnings({"javadoc", "unused"})
public final class CommonJSModuleGetterBuiltinNodeGen extends CommonJSModuleGetterBuiltin {
private CommonJSModuleGetterBuiltinNodeGen(JSContext context, JSBuiltin builtin, GlobalRequire getter, JavaScriptNode[] arguments) {
super(context, builtin, getter);
}
@Override
public JavaScriptNode[] getArguments() {
return new JavaScriptNode[] {};
}
@Override
public Object execute(VirtualFrame frameValue) {
return getObject();
}
@NeverDefault
public static CommonJSModuleGetterBuiltin create(JSContext context, JSBuiltin builtin, GlobalRequire getter, JavaScriptNode[] arguments) {
return new CommonJSModuleGetterBuiltinNodeGen(context, builtin, getter, arguments);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy