public abstract class AbstractContiguousObjectArray extends AbstractObjectArray
AbstractWritableArray.SetSupportedProfileAccessDynamicArray.DynamicArrayCacheScriptArray.DefaultIterator, ScriptArray.ProfileAccess, ScriptArray.ProfileHolder, ScriptArray.SetLengthProfileAccessSET_SUPPORTED_PROFILE_ACCESScache, 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, SET_LENGTH_PROFILE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContiguousObjectArray(int integrityLevel,
DynamicArray.DynamicArrayCache cache) |
| Modifier and Type | Method and Description |
|---|---|
ScriptArray |
addRangeImpl(com.oracle.truffle.api.object.DynamicObject object,
long offset,
int size)
This method grows the array by adding more elements of a given size.
|
long |
firstElementIndex(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
First element index (inclusive).
|
protected int |
getArrayOffset(com.oracle.truffle.api.object.DynamicObject object)
The arrayOffset (int) is the first element in internal array.
|
protected int |
getArrayOffset(com.oracle.truffle.api.object.DynamicObject object,
boolean condition) |
Object |
getInBoundsFastObject(com.oracle.truffle.api.object.DynamicObject object,
int index,
boolean condition) |
protected long |
getIndexOffset(com.oracle.truffle.api.object.DynamicObject object)
The indexOffset (int) is the first element is in array[indexOffset + arrayOffset].
|
protected long |
getIndexOffset(com.oracle.truffle.api.object.DynamicObject object,
boolean condition) |
boolean |
hasHoles(com.oracle.truffle.api.object.DynamicObject object,
boolean condition) |
long |
lastElementIndex(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
Last element index (inclusive).
|
protected int |
prepareInBoundsFast(com.oracle.truffle.api.object.DynamicObject object,
long index,
boolean condition) |
protected void |
setArrayOffset(com.oracle.truffle.api.object.DynamicObject object,
int arrayOffset) |
void |
setInBoundsFast(com.oracle.truffle.api.object.DynamicObject object,
int index,
Object value,
boolean condition) |
protected void |
setIndexOffset(com.oracle.truffle.api.object.DynamicObject object,
long indexOffset) |
protected void |
setLengthLess(com.oracle.truffle.api.object.DynamicObject object,
long length,
boolean condition,
ScriptArray.ProfileHolder profile) |
allocateArray, castNonNull, checkNonNull, deleteElementImpl, fillHoles, getArray, getArray, getArrayCapacity, getInBoundsFast, isHolePrepared, moveRangePrepared, resizeArray, setElementImpl, setHoleValue, setInBounds, setSupported, toDouble, toHoles, toObject, withIntegrityLevelarrayCast, clearUnusedArea, containsHoles, countHoles, createSetSupportedProfile, deleteElementHoles, getElement, getElementInBounds, getInBoundsFast, getInBoundsFastDouble, getInBoundsFastInt, getUsedLength, getUsedLength, hasElement, incrementHolesCount, isInBounds, isInBounds, isInBoundsFast, isSparse, isSupported, isSupportedContiguous, isSupportedHoles, isSupportedZeroBased, length, lengthInt, nextElementIndex, nextElementIndexHoles, nextElementIndexZeroBased, prepareInBounds, prepareInBoundsContiguous, prepareInBoundsHoles, prepareInBoundsZeroBased, prepareSupported, prepareSupportedContiguous, prepareSupportedHoles, prepareSupportedZeroBased, previousElementIndex, previousElementIndexHoles, removeRangeContiguous, removeRangeHoles, setArrayProperties, setLengthImpl, setLengthLessContiguous, setLengthLessZeroBased, toArray, toArrayZeroBased, toContiguous, toNonContiguous, toNonHoles, toSparse, traceWriteValuecreateCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, isStatelessType, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringaddRange, arrayCondition, asIterable, canDeleteElement, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, createSetLengthProfile, deleteElement, deleteElement, firstElementIndex, getElement, hasElement, hasHoles, isHolesType, isInBoundsFast, isInstance, lastElementIndex, length, lengthInt, makeMultiRangeList, makeRangeList, nextElementIndex, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, previousElementIndex, removeRange, removeRange, removeRangeImpl, setElement, setElement, setLength, setLength, toString, traceArrayTransition, traceWrite, valueIsByteprotected AbstractContiguousObjectArray(int integrityLevel,
DynamicArray.DynamicArrayCache cache)
public Object getInBoundsFastObject(com.oracle.truffle.api.object.DynamicObject object, int index, boolean condition)
getInBoundsFastObject in class AbstractObjectArraypublic void setInBoundsFast(com.oracle.truffle.api.object.DynamicObject object,
int index,
Object value,
boolean condition)
setInBoundsFast in class AbstractObjectArrayprotected final void setLengthLess(com.oracle.truffle.api.object.DynamicObject object,
long length,
boolean condition,
ScriptArray.ProfileHolder profile)
setLengthLess in class AbstractWritableArrayprotected final int prepareInBoundsFast(com.oracle.truffle.api.object.DynamicObject object,
long index,
boolean condition)
prepareInBoundsFast in class AbstractWritableArrayprotected final void setArrayOffset(com.oracle.truffle.api.object.DynamicObject object,
int arrayOffset)
setArrayOffset in class AbstractWritableArrayprotected final int getArrayOffset(com.oracle.truffle.api.object.DynamicObject object)
AbstractWritableArraygetArrayOffset in class AbstractWritableArrayprotected final int getArrayOffset(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
getArrayOffset in class AbstractWritableArrayprotected final void setIndexOffset(com.oracle.truffle.api.object.DynamicObject object,
long indexOffset)
setIndexOffset in class AbstractWritableArrayprotected final long getIndexOffset(com.oracle.truffle.api.object.DynamicObject object)
AbstractWritableArraygetIndexOffset in class AbstractWritableArrayprotected final long getIndexOffset(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
getIndexOffset in class AbstractWritableArraypublic final long firstElementIndex(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
ScriptArrayfirstElementIndex in class ScriptArraypublic final long lastElementIndex(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
ScriptArraylastElementIndex in class ScriptArraypublic boolean hasHoles(com.oracle.truffle.api.object.DynamicObject object,
boolean condition)
hasHoles in class ScriptArraypublic ScriptArray addRangeImpl(com.oracle.truffle.api.object.DynamicObject object, long offset, int size)
ScriptArrayaddRangeImpl in class ScriptArrayoffset - starting offset positionsize - size of the inserted empty arrayScriptArray instance with the new size