public abstract class AbstractConstantEmptyArray extends AbstractConstantArray
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 | Constructor and Description |
|---|---|
protected |
AbstractConstantEmptyArray(int integrityLevel,
DynamicArray.DynamicArrayCache cache) |
| Modifier and Type | Method and Description |
|---|---|
Object |
cloneArray(com.oracle.truffle.api.object.DynamicObject object) |
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 |
deleteElementImpl(com.oracle.truffle.api.object.DynamicObject object,
long index,
boolean strict) |
long |
firstElementIndex(com.oracle.truffle.api.object.DynamicObject object)
First element index (inclusive).
|
protected static long |
getCapacity(com.oracle.truffle.api.object.DynamicObject object) |
Object |
getElementInBounds(com.oracle.truffle.api.object.DynamicObject object,
int index) |
boolean |
hasElement(com.oracle.truffle.api.object.DynamicObject object,
long index) |
boolean |
hasHoles(com.oracle.truffle.api.object.DynamicObject object) |
boolean |
isHolesType()
Returns true when the this array could have hole values in it.
|
long |
lastElementIndex(com.oracle.truffle.api.object.DynamicObject object)
Last element index (inclusive).
|
int |
lengthInt(com.oracle.truffle.api.object.DynamicObject object) |
long |
nextElementIndex(com.oracle.truffle.api.object.DynamicObject object,
long index)
Returns the next index.
|
List<Object> |
ownPropertyKeys(com.oracle.truffle.api.object.DynamicObject object) |
long |
previousElementIndex(com.oracle.truffle.api.object.DynamicObject object,
long index)
Returns the previous index.
|
protected static void |
setCapacity(com.oracle.truffle.api.object.DynamicObject object,
long length) |
Object[] |
toArray(com.oracle.truffle.api.object.DynamicObject object)
Creates an Object[] from this array, of size array.length.
|
createCreateWritableProfile, getElement, getElementInBounds, isInBoundsFast, length, setElementImplarray, createCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toString, withIntegrityLeveladdRange, addRangeImpl, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, createSetLengthProfile, deleteElement, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, removeRangeImpl, setElement, setLength, setLength, setLengthImpl, toString, traceArrayTransition, traceWrite, valueIsByteprotected AbstractConstantEmptyArray(int integrityLevel,
DynamicArray.DynamicArrayCache cache)
protected static void setCapacity(com.oracle.truffle.api.object.DynamicObject object,
long length)
protected static long getCapacity(com.oracle.truffle.api.object.DynamicObject object)
public Object getElementInBounds(com.oracle.truffle.api.object.DynamicObject object, int index)
getElementInBounds in class AbstractConstantArraypublic int lengthInt(com.oracle.truffle.api.object.DynamicObject object)
lengthInt in class ScriptArraypublic Object[] toArray(com.oracle.truffle.api.object.DynamicObject object)
ScriptArraytoArray in class ScriptArraypublic Object cloneArray(com.oracle.truffle.api.object.DynamicObject object)
cloneArray in class DynamicArraypublic boolean hasElement(com.oracle.truffle.api.object.DynamicObject object,
long index)
hasElement in class ScriptArraypublic ScriptArray deleteElementImpl(com.oracle.truffle.api.object.DynamicObject object, long index, boolean strict)
deleteElementImpl in class ScriptArraypublic long firstElementIndex(com.oracle.truffle.api.object.DynamicObject object)
ScriptArrayfirstElementIndex in class AbstractConstantArraypublic long lastElementIndex(com.oracle.truffle.api.object.DynamicObject object)
ScriptArraylastElementIndex in class AbstractConstantArraypublic long nextElementIndex(com.oracle.truffle.api.object.DynamicObject object,
long index)
ScriptArraynextElementIndex in class AbstractConstantArraypublic long previousElementIndex(com.oracle.truffle.api.object.DynamicObject object,
long index)
ScriptArraypreviousElementIndex in class AbstractConstantArraypublic AbstractIntArray createWriteableInt(com.oracle.truffle.api.object.DynamicObject object, long index, int value, ScriptArray.ProfileHolder profile)
createWriteableInt in class AbstractConstantArraypublic AbstractDoubleArray createWriteableDouble(com.oracle.truffle.api.object.DynamicObject object, long index, double value, ScriptArray.ProfileHolder profile)
createWriteableDouble in class AbstractConstantArraypublic AbstractJSObjectArray createWriteableJSObject(com.oracle.truffle.api.object.DynamicObject object, long index, JSDynamicObject value, ScriptArray.ProfileHolder profile)
createWriteableJSObject in class AbstractConstantArraypublic AbstractObjectArray createWriteableObject(com.oracle.truffle.api.object.DynamicObject object, long index, Object value, ScriptArray.ProfileHolder profile)
createWriteableObject in class AbstractConstantArraypublic boolean isHolesType()
ScriptArrayisHolesType in class ScriptArraypublic boolean hasHoles(com.oracle.truffle.api.object.DynamicObject object)
hasHoles in class AbstractConstantArraypublic List<Object> ownPropertyKeys(com.oracle.truffle.api.object.DynamicObject object)
ownPropertyKeys in class ScriptArray