Class ArrayPrototypeBuiltins.JSArrayOperation

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Direct Known Subclasses:
ArrayFunctionBuiltins.JSArrayFunctionOperation, ArrayPrototypeBuiltins.AbstractArraySortNode, ArrayPrototypeBuiltins.ArrayForEachIndexCallOperation, ArrayPrototypeBuiltins.JSArrayConcatNode, ArrayPrototypeBuiltins.JSArrayFindIndexNode, ArrayPrototypeBuiltins.JSArrayFindNode, ArrayPrototypeBuiltins.JSArrayFlatMapNode, ArrayPrototypeBuiltins.JSArrayFlatNode, ArrayPrototypeBuiltins.JSArrayJoinNode, ArrayPrototypeBuiltins.JSArrayOperationWithToInt, ArrayPrototypeBuiltins.JSArrayPopNode, ArrayPrototypeBuiltins.JSArrayPushNode, ArrayPrototypeBuiltins.JSArrayReverseNode, ArrayPrototypeBuiltins.JSArrayShiftNode, ArrayPrototypeBuiltins.JSArrayToLocaleStringNode, ArrayPrototypeBuiltins.JSArrayToReversedNode, ArrayPrototypeBuiltins.JSArrayUnshiftNode, TypedArrayPrototypeBuiltins.JSArrayBufferViewReverseNode
Enclosing class:
ArrayPrototypeBuiltins

public abstract static class ArrayPrototypeBuiltins.JSArrayOperation extends ArrayPrototypeBuiltins.BasicArrayOperation
  • Field Details

  • Constructor Details

    • JSArrayOperation

      public JSArrayOperation(JSContext context, JSBuiltin builtin, boolean isTypedArrayImplementation)
    • JSArrayOperation

      public JSArrayOperation(JSContext context, JSBuiltin builtin)
  • Method Details

    • setLength

      protected void setLength(Object thisObject, int length)
    • setLength

      protected void setLength(Object thisObject, long length)
    • read

      protected Object read(Object target, int index)
    • read

      protected Object read(Object target, long index)
    • write

      protected void write(Object target, int index, Object value)
    • write

      protected void write(Object target, long index, Object value)
    • writeOwn

      protected void writeOwn(Object target, int index, Object value)
    • writeOwn

      protected void writeOwn(Object target, long index, Object value)
    • hasProperty

      protected boolean hasProperty(Object target, long propertyIdx)
    • nextElementIndex

      protected long nextElementIndex(Object target, long currentIndex, long length)
    • previousElementIndex

      protected long previousElementIndex(Object target, long currentIndex)
    • throwLengthError

      protected static final void throwLengthError()
    • createEmpty

      protected final JSObject createEmpty(Object thisObj, long length)
    • typedArrayCreateSameType

      protected final JSTypedArrayObject typedArrayCreateSameType(JSTypedArrayObject thisObj, long length)
    • arrayCreate

      protected JSArrayObject arrayCreate(long length)