Class JSFunctionFactory
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSFunctionFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJSFunctionFactory(JSContext context, JSObjectFactory objectFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal JSFunctionObjectcreate(JSFunctionData functionData, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, Object classPrototype, JSRealm realm) static JSFunctionFactorycreate(JSContext context, JSDynamicObject prototype) final JSFunctionObjectcreateBound(JSFunctionData functionData, Object classPrototype, JSRealm realm, Object boundTargetFunction, Object boundThis, Object[] boundArguments) final JSFunctionObjectcreateWithPrototype(JSFunctionData functionData, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, Object classPrototype, JSRealm realm, JSDynamicObject prototype) final JSFunctionObjectcreateWrapped(JSFunctionData functionData, JSRealm realm, Object wrappedTargetFunction) protected abstract JSDynamicObjectgetPrototype(JSRealm realm) protected abstract com.oracle.truffle.api.object.ShapegetShape(JSRealm realm, JSDynamicObject prototype) protected abstract voidinitProperties(JSFunctionObject obj, JSFunctionData functionData)
-
Field Details
-
context
-
objectFactory
-
-
Constructor Details
-
JSFunctionFactory
-
-
Method Details
-
create
-
create
public final JSFunctionObject create(JSFunctionData functionData, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, Object classPrototype, JSRealm realm) -
createWithPrototype
public final JSFunctionObject createWithPrototype(JSFunctionData functionData, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, Object classPrototype, JSRealm realm, JSDynamicObject prototype) -
initProperties
-
createBound
public final JSFunctionObject createBound(JSFunctionData functionData, Object classPrototype, JSRealm realm, Object boundTargetFunction, Object boundThis, Object[] boundArguments) -
createWrapped
public final JSFunctionObject createWrapped(JSFunctionData functionData, JSRealm realm, Object wrappedTargetFunction) -
getPrototype
-
getShape
protected abstract com.oracle.truffle.api.object.Shape getShape(JSRealm realm, JSDynamicObject prototype)
-