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