Class ArrayPrototypeBuiltins.BasicArrayOperation

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Direct Known Subclasses:
ArrayPrototypeBuiltins.JSArrayOperation, ArrayPrototypeBuiltins.JSArrayToStringNode
Enclosing class:
ArrayPrototypeBuiltins

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

    • isTypedArrayImplementation

      protected final boolean isTypedArrayImplementation
    • errorBranch

      protected final com.oracle.truffle.api.profiles.BranchProfile errorBranch
  • Constructor Details

    • BasicArrayOperation

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

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

    • toObject

      protected final Object toObject(Object target)
    • getLength

      protected long getLength(Object thisObject)
    • toObjectOrValidateTypedArray

      protected final Object toObjectOrValidateTypedArray(Object thisObj)
    • isCallable

      protected final boolean isCallable(Object callback)
    • checkCallbackIsFunction

      protected final Object checkCallbackIsFunction(Object callback)
    • getArraySpeciesConstructorNode

      protected final ArrayPrototypeBuiltins.ArraySpeciesConstructorNode getArraySpeciesConstructorNode()
    • checkOutOfBounds

      protected final void checkOutOfBounds(JSTypedArrayObject view)
    • validateTypedArray

      protected final JSTypedArrayObject validateTypedArray(Object obj)
      ES2016, 22.2.3.5.1 ValidateTypedArray(O).
    • reportLoopCount

      protected void reportLoopCount(long count)