public final class ScriptNode extends Object
Modifier and Type | Method and Description |
---|---|
Object[] |
argumentsToRun(JSRealm realm) |
Object[] |
argumentsToRunWithArguments(JSRealm realm,
Object[] args) |
Object[] |
argumentsToRunWithThisObject(JSRealm realm,
Object thisObj) |
Object[] |
argumentsToRunWithThisObjectWithArguments(JSRealm realm,
Object thisObj,
Object[] args) |
static ScriptNode |
fromFunctionData(JSContext context,
JSFunctionData functionData) |
static ScriptNode |
fromFunctionRoot(JSContext context,
FunctionRootNode root) |
com.oracle.truffle.api.RootCallTarget |
getCallTarget() |
JSContext |
getContext() |
JSFunctionData |
getFunctionData() |
com.oracle.truffle.api.nodes.RootNode |
getRootNode() |
Object |
run(JSRealm realm) |
Object |
run(Object[] args) |
Object |
runWithArguments(JSRealm realm,
Object[] args) |
Object |
runWithThisObject(JSRealm realm,
Object thisObj) |
Object |
runWithThisObjectWithArguments(JSRealm realm,
Object thisObj,
Object[] args) |
public static ScriptNode fromFunctionRoot(JSContext context, FunctionRootNode root)
public static ScriptNode fromFunctionData(JSContext context, JSFunctionData functionData)
public Object[] argumentsToRunWithThisObject(JSRealm realm, Object thisObj)
public Object[] argumentsToRunWithArguments(JSRealm realm, Object[] args)
public Object runWithThisObjectWithArguments(JSRealm realm, Object thisObj, Object[] args)
public Object[] argumentsToRunWithThisObjectWithArguments(JSRealm realm, Object thisObj, Object[] args)
public JSContext getContext()
public com.oracle.truffle.api.nodes.RootNode getRootNode()
public com.oracle.truffle.api.RootCallTarget getCallTarget()
public JSFunctionData getFunctionData()