Class ArrayBufferPrototypeBuiltins.JSArrayBufferSliceNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.JavaScriptNode
com.oracle.truffle.js.nodes.function.AbstractBodyNode
com.oracle.truffle.js.nodes.function.JSBuiltinNode
com.oracle.truffle.js.builtins.ArrayBufferPrototypeBuiltins.JSArrayBufferOperation
com.oracle.truffle.js.builtins.ArrayBufferPrototypeBuiltins.JSArrayBufferAbstractSliceNode
com.oracle.truffle.js.builtins.ArrayBufferPrototypeBuiltins.JSArrayBufferSliceNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode,com.oracle.truffle.api.nodes.NodeInterface,Cloneable
- Enclosing class:
ArrayBufferPrototypeBuiltins
public abstract static class ArrayBufferPrototypeBuiltins.JSArrayBufferSliceNode
extends ArrayBufferPrototypeBuiltins.JSArrayBufferAbstractSliceNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.js.nodes.function.JSBuiltinNode
JSBuiltinNode.Inlineable, JSBuiltinNode.InlinedNested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode -
Field Summary
Fields inherited from class com.oracle.truffle.js.nodes.function.JSBuiltinNode
ARGUMENTSFields inherited from class com.oracle.truffle.js.nodes.JavaScriptNode
INTERMEDIATE_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static JSArrayBufferObjectprotected JSArrayBufferObjectslice(JSArrayBufferObject.Heap thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) protected JSArrayBufferObjectsliceDirect(JSArrayBufferObject.Direct thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) protected JSArrayBufferObjectsliceDirectIntInt(JSArrayBufferObject.Direct thisObj, int begin, int end, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) protected JSArrayBufferObjectsliceInterop(JSArrayBufferObject.Interop thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch, com.oracle.truffle.api.interop.InteropLibrary srcBufferLib, com.oracle.truffle.api.interop.InteropLibrary dstBufferLib) protected JSArrayBufferObjectsliceIntInt(JSArrayBufferObject.Heap thisObj, int begin, int end, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) ArrayBuffer slice(long begin, optional long end).protected JSArrayBufferObjectsliceTruffleBuffer(Object thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch, com.oracle.truffle.api.interop.InteropLibrary srcBufferLib, com.oracle.truffle.api.interop.InteropLibrary dstBufferLib) Methods inherited from class com.oracle.truffle.js.builtins.ArrayBufferPrototypeBuiltins.JSArrayBufferAbstractSliceNode
clampIndex, getArraySpeciesConstructorNode, getEnd, getStartMethods inherited from class com.oracle.truffle.js.builtins.ArrayBufferPrototypeBuiltins.JSArrayBufferOperation
toIntegerMethods inherited from class com.oracle.truffle.js.nodes.function.JSBuiltinNode
copyUninitialized, countsTowardsStackTraceLimit, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, isSplitImmediately, tryCreateInlinedMethods inherited from class com.oracle.truffle.js.nodes.function.AbstractBodyNode
executeBoolean, executeDouble, executeInt, executeVoidMethods inherited from class com.oracle.truffle.js.nodes.JavaScriptNode
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsMethods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperatorsMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
findNearestNodeAt, findNearestNodeAt, materializeInstrumentableNodes
-
Constructor Details
-
JSArrayBufferSliceNode
-
-
Method Details
-
sliceIntInt
protected JSArrayBufferObject sliceIntInt(JSArrayBufferObject.Heap thisObj, int begin, int end, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) ArrayBuffer slice(long begin, optional long end). Returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from 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 new ArrayBuffer contains all bytes from begin to the end of this ArrayBuffer. 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 ArrayBuffer would be negative, it is clamped to zero.- Parameters:
thisObj- ArrayBufferbegin- begin indexend- end index- Returns:
- sliced ArrayBuffer
-
slice
protected JSArrayBufferObject slice(JSArrayBufferObject.Heap thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
sliceDirectIntInt
protected JSArrayBufferObject sliceDirectIntInt(JSArrayBufferObject.Direct thisObj, int begin, int end, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
sliceDirect
protected JSArrayBufferObject sliceDirect(JSArrayBufferObject.Direct thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
sliceInterop
protected JSArrayBufferObject sliceInterop(JSArrayBufferObject.Interop thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch, com.oracle.truffle.api.interop.InteropLibrary srcBufferLib, com.oracle.truffle.api.interop.InteropLibrary dstBufferLib) -
sliceTruffleBuffer
protected JSArrayBufferObject sliceTruffleBuffer(Object thisObj, Object begin0, Object end0, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch, com.oracle.truffle.api.interop.InteropLibrary srcBufferLib, com.oracle.truffle.api.interop.InteropLibrary dstBufferLib) -
error
-