public final class ContiguousIntArray extends AbstractContiguousIntArray
AbstractWritableArray.SetSupportedProfileAccessDynamicArray.DynamicArrayCacheScriptArray.CreateWritableProfileAccess, ScriptArray.DefaultIterator, ScriptArray.SetLengthProfileAccesscache, INTEGRITY_LEVEL_FROZEN, INTEGRITY_LEVEL_FROZEN_LENGTH_READONLY, INTEGRITY_LEVEL_MASK, INTEGRITY_LEVEL_NONE, INTEGRITY_LEVEL_NONE_LENGTH_READONLY, INTEGRITY_LEVEL_NOT_EXTENSIBLE, INTEGRITY_LEVEL_NOT_EXTENSIBLE_LENGTH_READONLY, INTEGRITY_LEVEL_SEALED, INTEGRITY_LEVEL_SEALED_LENGTH_READONLY, INTEGRITY_LEVELS, integrityLevel, LENGTH_NOT_WRITABLE, LENGTH_WRITABLE_MASKEMPTY_OBJECT_ARRAY| Modifier and Type | Method and Description |
|---|---|
boolean |
isSupported(JSDynamicObject object,
long index) |
static ContiguousIntArray |
makeContiguousIntArray(JSDynamicObject object,
long length,
int[] array,
long indexOffset,
int arrayOffset,
int usedLength,
int integrityLevel) |
protected int |
prepareInBounds(JSDynamicObject object,
int index,
com.oracle.truffle.api.nodes.Node node,
AbstractWritableArray.SetSupportedProfileAccess profile) |
protected int |
prepareSupported(JSDynamicObject object,
int index,
com.oracle.truffle.api.nodes.Node node,
AbstractWritableArray.SetSupportedProfileAccess profile) |
ScriptArray |
removeRangeImpl(JSDynamicObject object,
long start,
long end)
This function deletes all elements in the range from [start..end[.
|
ContiguousDoubleArray |
toDouble(JSDynamicObject object,
long index,
double value) |
AbstractWritableArray |
toHoles(JSDynamicObject object,
long index,
Object value) |
ZeroBasedIntArray |
toNonContiguous(JSDynamicObject object,
int index,
Object value,
com.oracle.truffle.api.nodes.Node node,
AbstractWritableArray.SetSupportedProfileAccess profile) |
ContiguousObjectArray |
toObject(JSDynamicObject object,
long index,
Object value) |
protected HolesObjectArray |
toObjectHoles(JSDynamicObject object) |
protected ContiguousIntArray |
withIntegrityLevel(int newIntegrityLevel) |
addRangeImpl, firstElementIndex, getArrayOffset, getInBoundsFastInt, getIndexOffset, hasHoles, lastElementIndex, prepareInBoundsFast, setArrayOffset, setInBoundsFast, setIndexOffset, setLengthLessallocateArray, cloneArray, containsHoleValue, convertToObject, deleteElementImpl, getArray, getArrayCapacity, getInBoundsFast, isHolePrepared, moveRangePrepared, resizeArray, setElementImpl, setHoleValue, setInBounds, setSupportedassertHoleCount, checkFillHoles, clearUnusedArea, containsHoles, countHoles, deleteElementHoles, fillHoles, getElement, getElementInBounds, getInBoundsFastDouble, getUsedLength, hasElement, incrementHolesCount, isInBounds, isInBoundsFast, isSparse, isSupportedContiguous, isSupportedHoles, isSupportedZeroBased, length, lengthInt, nextElementIndex, nextElementIndexHoles, nextElementIndexZeroBased, prepareInBoundsContiguous, prepareInBoundsHoles, prepareInBoundsZeroBased, prepareSupportedContiguous, prepareSupportedHoles, prepareSupportedZeroBased, previousElementIndex, previousElementIndexHoles, removeRangeContiguous, removeRangeHoles, setArrayProperties, setArrayProperties, setLengthImpl, setLengthLessContiguous, setLengthLessZeroBased, shiftRangeImpl, toContiguous, toNonHoles, toSparse, traceWriteValue, unusedElementsAreHolescreateCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, maybePreinitializeCache, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringaddRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, isHolesType, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, shiftRange, toArray, toString, traceArrayTransition, traceWrite, valueIsBytepublic static ContiguousIntArray makeContiguousIntArray(JSDynamicObject object, long length, int[] array, long indexOffset, int arrayOffset, int usedLength, int integrityLevel)
protected int prepareInBounds(JSDynamicObject object, int index, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile)
prepareInBounds in class AbstractWritableArrayprotected int prepareSupported(JSDynamicObject object, int index, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile)
prepareSupported in class AbstractWritableArraypublic boolean isSupported(JSDynamicObject object, long index)
isSupported in class AbstractWritableArraypublic ContiguousDoubleArray toDouble(JSDynamicObject object, long index, double value)
toDouble in class AbstractWritableArraypublic ContiguousObjectArray toObject(JSDynamicObject object, long index, Object value)
toObject in class AbstractWritableArraypublic AbstractWritableArray toHoles(JSDynamicObject object, long index, Object value)
toHoles in class AbstractIntArrayprotected HolesObjectArray toObjectHoles(JSDynamicObject object)
toObjectHoles in class AbstractIntArraypublic ZeroBasedIntArray toNonContiguous(JSDynamicObject object, int index, Object value, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile)
toNonContiguous in class AbstractWritableArraypublic ScriptArray removeRangeImpl(JSDynamicObject object, long start, long end)
ScriptArrayremoveRangeImpl in class ScriptArrayprotected ContiguousIntArray withIntegrityLevel(int newIntegrityLevel)
withIntegrityLevel in class AbstractIntArray