Class LazyRegexResultIndicesArray
java.lang.Object
com.oracle.truffle.js.runtime.array.ScriptArray
com.oracle.truffle.js.runtime.array.DynamicArray
com.oracle.truffle.js.runtime.array.dyn.AbstractConstantArray
com.oracle.truffle.js.runtime.array.dyn.AbstractConstantLazyArray
com.oracle.truffle.js.runtime.array.dyn.LazyRegexResultIndicesArray
-
Nested Class Summary
Nested classes/interfaces inherited from class DynamicArray
DynamicArray.DynamicArrayCacheNested classes/interfaces inherited from class ScriptArray
ScriptArray.CreateWritableProfileAccess, ScriptArray.DefaultIterator, ScriptArray.SetLengthProfileAccess -
Field Summary
FieldsFields inherited from class DynamicArray
cache, 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_MASKFields inherited from class ScriptArray
EMPTY_OBJECT_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLazyRegexResultIndicesArray(int integrityLevel, DynamicArray.DynamicArrayCache cache) -
Method Summary
Modifier and TypeMethodDescriptioncloneArray(JSDynamicObject object) static LazyRegexResultIndicesArraycreateWritable(JSContext context, JSDynamicObject object, long index, Object value, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) createWriteableObject(JSDynamicObject object, long index, Object value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile) getElementInBounds(JSDynamicObject object, int index) static ObjectgetIntIndicesArray(JSContext context, Object regexResult, int[] indices, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) static ObjectgetIntIndicesArray(JSContext context, Object regexResult, int index, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) protected static Object[]materializeFull(JSDynamicObject object, int groupCount, com.oracle.truffle.api.nodes.Node node) static ObjectmaterializeGroup(JSContext context, JSDynamicObject object, int index, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) protected DynamicArraywithIntegrityLevel(int newIntegrityLevel) Methods inherited from class AbstractConstantLazyArray
addRangeImpl, createWriteableDouble, createWriteableInt, createWriteableJSObject, deleteElementImpl, hasElement, length, lengthInt, removeRangeImpl, setLengthImplMethods inherited from class AbstractConstantArray
firstElementIndex, getElement, getElementInBounds, hasHoles, isInBoundsFast, lastElementIndex, nextElementIndex, previousElementIndex, setElementImplMethods inherited from class DynamicArray
createCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, maybePreinitializeCache, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringMethods inherited from class ScriptArray
addRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, hasHolesOrUnused, isHolesType, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, shiftRange, shiftRangeImpl, toArray, traceArrayTransition, traceWrite, valueIsByte
-
Field Details
-
LAZY_REGEX_RESULT_INDICES_ARRAY
-
-
Constructor Details
-
LazyRegexResultIndicesArray
-
-
Method Details
-
createLazyRegexResultIndicesArray
-
materializeGroup
public static Object materializeGroup(JSContext context, JSDynamicObject object, int index, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) -
getIntIndicesArray
public static Object getIntIndicesArray(JSContext context, Object regexResult, int index, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) -
getIntIndicesArray
public static Object getIntIndicesArray(JSContext context, Object regexResult, int[] indices, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) -
createWritable
public ScriptArray createWritable(JSContext context, JSDynamicObject object, long index, Object value, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) -
getElementInBounds
- Specified by:
getElementInBoundsin classAbstractConstantArray
-
createWriteableObject
public AbstractObjectArray createWriteableObject(JSDynamicObject object, long index, Object value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile) - Specified by:
createWriteableObjectin classAbstractConstantArray
-
cloneArray
- Specified by:
cloneArrayin classDynamicArray
-
withIntegrityLevel
- Specified by:
withIntegrityLevelin classDynamicArray
-
materializeFull
protected static Object[] materializeFull(JSDynamicObject object, int groupCount, com.oracle.truffle.api.nodes.Node node)
-