public final class ConstantEmptyPrototypeArray extends AbstractConstantEmptyArray
AbstractConstantArray.CreateWritableProfileAccessDynamicArray.DynamicArrayCacheScriptArray.DefaultIterator, ScriptArray.ProfileAccess, ScriptArray.ProfileHolder, ScriptArray.SetLengthProfileAccessCREATE_WRITABLE_PROFILEcache, 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 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.
|
static ScriptArray |
createConstantEmptyPrototypeArray() |
AbstractDoubleArray |
createWriteableDouble(com.oracle.truffle.api.object.DynamicObject object,
long index,
double value,
ScriptArray.ProfileHolder profile) |
AbstractIntArray |
createWriteableInt(com.oracle.truffle.api.object.DynamicObject object,
long index,
int value,
ScriptArray.ProfileHolder profile) |
AbstractJSObjectArray |
createWriteableJSObject(com.oracle.truffle.api.object.DynamicObject object,
long index,
JSDynamicObject value,
ScriptArray.ProfileHolder profile) |
AbstractObjectArray |
createWriteableObject(com.oracle.truffle.api.object.DynamicObject object,
long index,
Object value,
ScriptArray.ProfileHolder profile) |
ScriptArray |
removeRangeImpl(com.oracle.truffle.api.object.DynamicObject object,
long start,
long end)
This function deletes all elements in the range from [start..end[.
|
ScriptArray |
setLengthImpl(com.oracle.truffle.api.object.DynamicObject object,
long length,
ScriptArray.ProfileHolder profile) |
protected DynamicArray |
withIntegrityLevel(int newIntegrityLevel) |
cloneArray, deleteElementImpl, firstElementIndex, getCapacity, getElementInBounds, hasElement, hasHoles, isHolesType, lastElementIndex, lengthInt, nextElementIndex, ownPropertyKeys, previousElementIndex, setCapacity, toArraycreateCreateWritableProfile, getElement, getElementInBounds, isInBoundsFast, length, setElementImplarray, createCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringaddRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, createSetLengthProfile, deleteElement, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, toString, traceArrayTransition, traceWrite, valueIsBytepublic static ScriptArray createConstantEmptyPrototypeArray()
public ScriptArray setLengthImpl(com.oracle.truffle.api.object.DynamicObject object, long length, ScriptArray.ProfileHolder profile)
setLengthImpl in class ScriptArraypublic AbstractIntArray createWriteableInt(com.oracle.truffle.api.object.DynamicObject object, long index, int value, ScriptArray.ProfileHolder profile)
createWriteableInt in class AbstractConstantEmptyArraypublic AbstractDoubleArray createWriteableDouble(com.oracle.truffle.api.object.DynamicObject object, long index, double value, ScriptArray.ProfileHolder profile)
createWriteableDouble in class AbstractConstantEmptyArraypublic AbstractJSObjectArray createWriteableJSObject(com.oracle.truffle.api.object.DynamicObject object, long index, JSDynamicObject value, ScriptArray.ProfileHolder profile)
createWriteableJSObject in class AbstractConstantEmptyArraypublic AbstractObjectArray createWriteableObject(com.oracle.truffle.api.object.DynamicObject object, long index, Object value, ScriptArray.ProfileHolder profile)
createWriteableObject in class AbstractConstantEmptyArraypublic ScriptArray removeRangeImpl(com.oracle.truffle.api.object.DynamicObject object, long start, long end)
ScriptArrayremoveRangeImpl 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 sizeprotected DynamicArray withIntegrityLevel(int newIntegrityLevel)
withIntegrityLevel in class DynamicArray