Class TypedArrayPrototypeBuiltins.JSArrayBufferViewSubarrayNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
TypedArrayPrototypeBuiltins

public abstract static class TypedArrayPrototypeBuiltins.JSArrayBufferViewSubarrayNode extends ArrayBufferPrototypeBuiltins.JSArrayBufferOperation
  • Constructor Details

    • JSArrayBufferViewSubarrayNode

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

    • subarray

      protected JSTypedArrayObject subarray(JSTypedArrayObject thisObj, Object start, Object end, com.oracle.truffle.api.profiles.InlinedConditionProfile negativeBegin, com.oracle.truffle.api.profiles.InlinedConditionProfile negativeEnd, com.oracle.truffle.api.profiles.InlinedConditionProfile smallerEnd)
      TypedArray subarray(long begin, optional long end). Returns a new TypedArray view of the ArrayBuffer store for this TypedArray, referencing the elements at begin, inclusive, up to end, exclusive. If either begin or end is negative, it refers to an index from the end of the array, as opposed to from the beginning. If end is unspecified, the subarray contains all elements from begin to the end of the TypedArray. The range specified by the begin and end values is clamped to the valid index range for the current array. If the computed length of the new TypedArray would be negative, it is clamped to zero. The returned TypedArray will be of the same type as the array on which this method is invoked.
    • subarrayGeneric

      protected JSTypedArrayObject subarrayGeneric(Object thisObj, Object begin0, Object end0)
    • subarrayImpl

      protected JSTypedArrayObject subarrayImpl(JSTypedArrayObject thisObj, int beginByteOffset, Object newLength)
    • getArraySpeciesConstructorNode

      protected ArrayPrototypeBuiltins.ArraySpeciesConstructorNode getArraySpeciesConstructorNode()