public final class ConstantObjectArray 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_ARRAYgetElement, getElementInBounds, isInBoundsFast, length, setElementImplcreateCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, maybePreinitializeCache, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringaddRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, hasHolesOrUnused, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, shiftRange, shiftRangeImpl, toArray, toString, traceArrayTransition, traceWrite, valueIsBytepublic static ConstantObjectArray createConstantObjectArray()
public static AbstractConstantArray createConstantHolesObjectArray()
public boolean hasElement(JSDynamicObject object, long index)
hasElement in class ScriptArraypublic Object getElementInBounds(JSDynamicObject object, int index)
getElementInBounds in class AbstractConstantArraypublic static Object getElementInBoundsDirect(JSDynamicObject object, int index)
public boolean hasHoles(JSDynamicObject object)
ScriptArrayScriptArray.firstElementIndex(com.oracle.truffle.js.runtime.objects.JSDynamicObject) and
ScriptArray.lastElementIndex(com.oracle.truffle.js.runtime.objects.JSDynamicObject). Implies ScriptArray.isHolesType().hasHoles in class AbstractConstantArrayScriptArray.hasHolesOrUnused(com.oracle.truffle.js.runtime.objects.JSDynamicObject)public int lengthInt(JSDynamicObject object)
lengthInt in class ScriptArraypublic Object cloneArray(JSDynamicObject object)
cloneArray in class DynamicArraypublic long nextElementIndex(JSDynamicObject object, long index0)
ScriptArraynextElementIndex in class AbstractConstantArraypublic long previousElementIndex(JSDynamicObject object, long index0)
ScriptArraypreviousElementIndex in class AbstractConstantArraypublic long firstElementIndex(JSDynamicObject object)
ScriptArrayfirstElementIndex in class AbstractConstantArraypublic long lastElementIndex(JSDynamicObject object)
ScriptArraylastElementIndex in class AbstractConstantArraypublic ScriptArray deleteElementImpl(JSDynamicObject object, long index, boolean strict)
deleteElementImpl in class ScriptArraypublic ScriptArray setLengthImpl(JSDynamicObject object, long length, com.oracle.truffle.api.nodes.Node node, ScriptArray.SetLengthProfileAccess profile)
setLengthImpl in class ScriptArraypublic AbstractObjectArray createWriteableInt(JSDynamicObject object, long index, int value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile)
createWriteableInt in class AbstractConstantArraypublic AbstractObjectArray createWriteableDouble(JSDynamicObject object, long index, double value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile)
createWriteableDouble in class AbstractConstantArraypublic AbstractObjectArray 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()
isHolesType in class ScriptArraypublic ScriptArray removeRangeImpl(JSDynamicObject object, long start, long end)
ScriptArrayremoveRangeImpl in class ScriptArraypublic ScriptArray addRangeImpl(JSDynamicObject 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 DynamicArraypublic List<Object> ownPropertyKeys(JSDynamicObject object)
ownPropertyKeys in class ScriptArray