public abstract static class ArrayFunctionBuiltins.JSArrayFromNode extends ArrayFunctionBuiltins.JSArrayFunctionOperation
JSBuiltinNode.Inlineable, JSBuiltinNode.InlinedTHROW_ERRORerrorBranch, isTypedArrayImplementationARGUMENTSINTERMEDIATE_VALUE| Constructor and Description |
|---|
JSArrayFromNode(JSContext context,
JSBuiltin builtin,
boolean isTypedArray) |
| Modifier and Type | Method and Description |
|---|---|
protected JSDynamicObject |
arrayFrom(Object thisObj,
Object[] args,
com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile) |
protected JSDynamicObject |
arrayFromArrayLike(Object thisObj,
Object items,
Object mapFn,
Object thisArg,
boolean mapping,
boolean setLength) |
protected JSDynamicObject |
arrayFromIntl(Object thisObj,
Object items,
Object mapFn,
Object thisArg,
boolean setLength,
com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile) |
protected JSDynamicObject |
arrayFromIterable(Object thisObj,
Object items,
Object usingIterator,
Object mapFn,
Object thisArg,
boolean mapping,
com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile) |
protected Object |
callMapFn(Object target,
JSDynamicObject function,
Object... userArguments) |
protected IteratorRecord |
getIterator(Object object,
Object usingIterator) |
protected Object |
getIteratorValue(JSDynamicObject iteratorResult) |
protected long |
getSourceLength(Object thisObject) |
protected void |
iteratorCloseAbrupt(JSDynamicObject iterator) |
protected Object |
iteratorStep(IteratorRecord iteratorRecord) |
constructOrArray, isTypedArrayConstructorarrayCreate, createEmpty, hasProperty, hasProperty, nextElementIndex, previousElementIndex, read, read, setLength, setLength, setLength, throwLengthError, write, write, writeOwn, writeOwncheckCallbackIsFunction, checkHasDetachedBuffer, getArraySpeciesConstructorNode, getLength, isCallable, reportLoopCount, reportLoopCount, toObject, toObjectOrValidateTypedArray, validateTypedArraycopyUninitialized, countsTowardsStackTraceLimit, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, isSplitImmediately, tryCreateInlinedaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealm, hasOverloadedOperatorsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeprotected void iteratorCloseAbrupt(JSDynamicObject iterator)
protected IteratorRecord getIterator(Object object, Object usingIterator)
protected Object getIteratorValue(JSDynamicObject iteratorResult)
protected Object iteratorStep(IteratorRecord iteratorRecord)
protected final Object callMapFn(Object target, JSDynamicObject function, Object... userArguments)
protected long getSourceLength(Object thisObject)
protected JSDynamicObject arrayFrom(Object thisObj, Object[] args, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile)
protected JSDynamicObject arrayFromIntl(Object thisObj, Object items, Object mapFn, Object thisArg, boolean setLength, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile)
protected JSDynamicObject arrayFromIterable(Object thisObj, Object items, Object usingIterator, Object mapFn, Object thisArg, boolean mapping, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile)
protected JSDynamicObject arrayFromArrayLike(Object thisObj, Object items, Object mapFn, Object thisArg, boolean mapping, boolean setLength)