public final class JSArguments extends Object
| Modifier and Type | Field and Description |
|---|---|
static Object[] |
EMPTY_ARGUMENTS_ARRAY |
static int |
RUNTIME_ARGUMENT_COUNT |
| Modifier and Type | Method and Description |
|---|---|
static void |
arraycopy(Object[] src,
int srcPos,
Object[] dest,
int destPos,
int length) |
static Object[] |
create(Object target,
Object function,
Object... userArguments) |
static Object[] |
createInitial(Object target,
Object function,
int userArgumentCount) |
static Object[] |
createInitialWithNewTarget(Object target,
Object function,
Object newTarget,
int userArgumentCount) |
static Object[] |
createOneArg(Object target,
Object function,
Object userArgument) |
static Object[] |
createResumeArguments(Object executionContext,
Object generatorOrPromiseCapability,
Completion.Type completionType,
Object completionValue) |
static Object[] |
createResumeArguments(Object executionContext,
Object generator,
Completion completion) |
static Object[] |
createWithNewTarget(Object target,
Object function,
Object newTarget,
Object... userArguments) |
static Object[] |
createZeroArg(Object target,
Object function) |
static Object[] |
extractUserArguments(Object[] arguments) |
static Object[] |
extractUserArguments(Object[] arguments,
int skip) |
static Object[] |
extractUserArguments(Object[] arguments,
int skip,
int skipEnd) |
static com.oracle.truffle.api.frame.MaterializedFrame |
getEnclosingFrame(Object[] arguments) |
static Object |
getFunctionObject(Object[] arguments) |
static Object |
getNewTarget(Object[] arguments) |
static Completion |
getResumeCompletion(Object[] arguments) |
static Completion.Type |
getResumeCompletionType(Object[] arguments) |
static Object |
getResumeCompletionValue(Object[] arguments) |
static com.oracle.truffle.api.frame.MaterializedFrame |
getResumeExecutionContext(Object[] arguments) |
static Object |
getResumeGeneratorOrPromiseCapability(Object[] arguments) |
static Object |
getThisObject(Object[] arguments) |
static Object |
getUserArgument(Object[] arguments,
int index) |
static int |
getUserArgumentCount(Object[] arguments) |
static void |
setThisObject(Object[] arguments,
Object value) |
static void |
setUserArgument(Object[] arguments,
int index,
Object value) |
static void |
setUserArguments(Object[] arguments,
int index,
Object... userArguments) |
public static final Object[] EMPTY_ARGUMENTS_ARRAY
public static final int RUNTIME_ARGUMENT_COUNT
public static Object[] createInitial(Object target, Object function, int userArgumentCount)
public static Object[] createOneArg(Object target, Object function, Object userArgument)
public static int getUserArgumentCount(Object[] arguments)
public static void setUserArguments(Object[] arguments, int index, Object... userArguments)
public static Object[] extractUserArguments(Object[] arguments, int skip, int skipEnd)
public static com.oracle.truffle.api.frame.MaterializedFrame getEnclosingFrame(Object[] arguments)
public static void arraycopy(Object[] src, int srcPos, Object[] dest, int destPos, int length)
public static Object[] createWithNewTarget(Object target, Object function, Object newTarget, Object... userArguments)
public static Object[] createInitialWithNewTarget(Object target, Object function, Object newTarget, int userArgumentCount)
public static Object[] createResumeArguments(Object executionContext, Object generatorOrPromiseCapability, Completion.Type completionType, Object completionValue)
public static Object[] createResumeArguments(Object executionContext, Object generator, Completion completion)
public static com.oracle.truffle.api.frame.MaterializedFrame getResumeExecutionContext(Object[] arguments)
public static Object getResumeGeneratorOrPromiseCapability(Object[] arguments)
public static Completion.Type getResumeCompletionType(Object[] arguments)
public static Completion getResumeCompletion(Object[] arguments)