Class AbstractIntArray
java.lang.Object
com.oracle.truffle.js.runtime.array.ScriptArray
com.oracle.truffle.js.runtime.array.DynamicArray
com.oracle.truffle.js.runtime.array.dyn.AbstractWritableArray
com.oracle.truffle.js.runtime.array.dyn.AbstractIntArray
- Direct Known Subclasses:
AbstractContiguousIntArray, ZeroBasedIntArray
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractWritableArray
AbstractWritableArray.SetSupportedProfileAccessNested classes/interfaces inherited from class DynamicArray
DynamicArray.DynamicArrayCacheNested classes/interfaces inherited from class ScriptArray
ScriptArray.CreateWritableProfileAccess, ScriptArray.DefaultIterator, ScriptArray.SetLengthProfileAccess -
Field Summary
Fields inherited from class DynamicArray
cache, 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_MASKFields inherited from class ScriptArray
EMPTY_OBJECT_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIntArray(int integrityLevel, DynamicArray.DynamicArrayCache cache) -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectallocateArray(int length) cloneArray(JSDynamicObject object) protected static booleancontainsHoleValue(JSDynamicObject object) protected static Object[]convertToObject(JSDynamicObject object) deleteElementImpl(JSDynamicObject object, long index, boolean strict) protected static int[]getArray(JSDynamicObject object) protected final intgetArrayCapacity(JSDynamicObject object) getInBoundsFast(JSDynamicObject object, int index) abstract intgetInBoundsFastInt(JSDynamicObject object, int index) protected final booleanisHolePrepared(JSDynamicObject object, int preparedIndex) Returns true when the array contains a hole at that index.protected final voidmoveRangePrepared(JSDynamicObject object, int src, int dst, int len) Movelenelements fromsrctodst.protected final voidresizeArray(JSDynamicObject object, int newCapacity, int oldCapacity, int offset) final ScriptArraysetElementImpl(JSDynamicObject object, long index, Object value, boolean strict) protected final voidsetHoleValue(JSDynamicObject object, int preparedIndex) final voidsetInBounds(JSDynamicObject object, int index, int value, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile) abstract voidsetInBoundsFast(JSDynamicObject object, int index, int value) final voidsetSupported(JSDynamicObject object, int index, int value, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile) abstract AbstractWritableArraytoHoles(JSDynamicObject object, long index, Object value) protected abstract HolesObjectArraytoObjectHoles(JSDynamicObject object) protected abstract AbstractIntArraywithIntegrityLevel(int newIntegrityLevel) Methods inherited from class AbstractWritableArray
assertHoleCount, checkFillHoles, clearUnusedArea, containsHoles, countHoles, deleteElementHoles, fillHoles, getArrayOffset, getElement, getElementInBounds, getInBoundsFastDouble, getIndexOffset, getUsedLength, hasElement, hasHoles, hasHolesOrUnused, incrementHolesCount, isInBounds, isInBoundsFast, isSparse, isSupported, isSupportedContiguous, isSupportedHoles, isSupportedZeroBased, length, lengthInt, nextElementIndex, nextElementIndexHoles, nextElementIndexZeroBased, prepareInBounds, prepareInBoundsContiguous, prepareInBoundsFast, prepareInBoundsHoles, prepareInBoundsZeroBased, prepareSupported, prepareSupportedContiguous, prepareSupportedHoles, prepareSupportedZeroBased, previousElementIndex, previousElementIndexHoles, removeRangeContiguous, removeRangeHoles, setArrayOffset, setArrayProperties, setArrayProperties, setIndexOffset, setLengthImpl, setLengthLess, setLengthLessContiguous, setLengthLessZeroBased, shiftRangeImpl, toContiguous, toDouble, toNonContiguous, toNonHoles, toObject, toSparse, traceWriteValue, unusedElementsAreHolesMethods inherited from class DynamicArray
createCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, maybePreinitializeCache, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringMethods inherited from class ScriptArray
addRange, addRangeImpl, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, firstElementIndex, isHolesType, isInstance, lastElementIndex, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, removeRangeImpl, setElement, setLength, setLength, shiftRange, toArray, traceArrayTransition, traceWrite, valueIsByte
-
Constructor Details
-
AbstractIntArray
-
-
Method Details
-
setElementImpl
public final ScriptArray setElementImpl(JSDynamicObject object, long index, Object value, boolean strict) - Specified by:
setElementImplin classScriptArray
-
getInBoundsFast
- Specified by:
getInBoundsFastin classAbstractWritableArray
-
getArray
-
getInBoundsFastInt
- Overrides:
getInBoundsFastIntin classAbstractWritableArray
-
setInBoundsFast
-
setInBounds
public final void setInBounds(JSDynamicObject object, int index, int value, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile) -
setSupported
public final void setSupported(JSDynamicObject object, int index, int value, com.oracle.truffle.api.nodes.Node node, AbstractWritableArray.SetSupportedProfileAccess profile) -
setHoleValue
- Specified by:
setHoleValuein classAbstractWritableArray
-
isHolePrepared
Description copied from class:AbstractWritableArrayReturns true when the array contains a hole at that index. The index is a prepared (internal) index.- Specified by:
isHolePreparedin classAbstractWritableArray
-
getArrayCapacity
- Specified by:
getArrayCapacityin classAbstractWritableArray
-
resizeArray
protected final void resizeArray(JSDynamicObject object, int newCapacity, int oldCapacity, int offset) - Specified by:
resizeArrayin classAbstractWritableArray
-
toHoles
- Specified by:
toHolesin classAbstractWritableArray
-
deleteElementImpl
- Specified by:
deleteElementImplin classScriptArray
-
toObjectHoles
-
convertToObject
-
containsHoleValue
-
moveRangePrepared
Description copied from class:AbstractWritableArrayMovelenelements fromsrctodst.- Specified by:
moveRangePreparedin classAbstractWritableArray
-
allocateArray
- Specified by:
allocateArrayin classAbstractWritableArray
-
cloneArray
- Specified by:
cloneArrayin classDynamicArray
-
withIntegrityLevel
- Specified by:
withIntegrityLevelin classAbstractWritableArray
-