Class Uint8ArrayBuiltins.Uint8ArrayBaseNode
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.Uint8ArrayBuiltins.Uint8ArrayBaseNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode,com.oracle.truffle.api.nodes.NodeInterface,Cloneable
- Direct Known Subclasses:
Uint8ArrayBuiltins.SetFromBaseNode,Uint8ArrayBuiltins.ToBase64Node,Uint8ArrayBuiltins.ToHexNode,Uint8ArrayBuiltins.Uint8ArrayFromBase64Node,Uint8ArrayBuiltins.Uint8ArrayFromHexNode
- Enclosing class:
Uint8ArrayBuiltins
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordNested 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
FieldsModifier and TypeFieldDescriptionprotected static final com.oracle.truffle.api.strings.TruffleString[]protected static final com.oracle.truffle.api.strings.TruffleStringprotected static final com.oracle.truffle.api.strings.TruffleStringprotected final com.oracle.truffle.api.profiles.BranchProfileprotected static final com.oracle.truffle.api.strings.TruffleString[]protected static final com.oracle.truffle.api.strings.TruffleStringprotected static final com.oracle.truffle.api.strings.TruffleStringprotected static final com.oracle.truffle.api.strings.TruffleStringFields 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 intestimateDecodedByteLengthFromBase64(com.oracle.truffle.api.strings.TruffleString src, int len, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode) Calculates the longest expectable decoded byte length from the given base64 input string.protected final Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResultfromBase64(com.oracle.truffle.api.strings.TruffleString string, boolean base64url, int maxLength, com.oracle.truffle.api.strings.TruffleString lastChunkHandling, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode) protected final Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResultfromHex(com.oracle.truffle.api.strings.TruffleString string, int maxLength, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode) protected final intprotected final com.oracle.truffle.api.strings.TruffleStringgetStringOption(Object opts, com.oracle.truffle.api.strings.TruffleString key, com.oracle.truffle.api.strings.TruffleString[] allowedValues, com.oracle.truffle.api.strings.TruffleString defaultValue, PropertyGetNode getOptionValueNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalNode) protected final byte[]getUint8ArrayBytes(JSTypedArrayObject ta, com.oracle.truffle.api.interop.InteropLibrary interop) protected static booleanisUint8Array(JSTypedArrayObject typedArray) protected voidsetUint8ArrayBytes(JSTypedArrayObject into, byte[] bytes, int resultLength) protected final JSExceptionsyntaxError(String message) Methods 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, hasOverloadedOperators, reportLoopCount, reportLoopCountMethods 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, reportPolymorphicSpecialize, reportReplaceMethods 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
createProbe, findNearestNodeAt, findNearestNodeAt, findProbe, materializeInstrumentableNodes
-
Field Details
-
BASE64
protected static final com.oracle.truffle.api.strings.TruffleString BASE64 -
BASE64URL
protected static final com.oracle.truffle.api.strings.TruffleString BASE64URL -
ALPHABET_VALUES
protected static final com.oracle.truffle.api.strings.TruffleString[] ALPHABET_VALUES -
LOOSE
protected static final com.oracle.truffle.api.strings.TruffleString LOOSE -
STRICT
protected static final com.oracle.truffle.api.strings.TruffleString STRICT -
STOP_BEFORE_PARTIAL
protected static final com.oracle.truffle.api.strings.TruffleString STOP_BEFORE_PARTIAL -
LAST_CHUNK_HANDLING_VALUES
protected static final com.oracle.truffle.api.strings.TruffleString[] LAST_CHUNK_HANDLING_VALUES -
errorBranch
protected final com.oracle.truffle.api.profiles.BranchProfile errorBranch
-
-
Constructor Details
-
Uint8ArrayBaseNode
-
-
Method Details
-
isUint8Array
-
getByteLengthOrThrow
-
getUint8ArrayBytes
protected final byte[] getUint8ArrayBytes(JSTypedArrayObject ta, com.oracle.truffle.api.interop.InteropLibrary interop) -
setUint8ArrayBytes
-
fromBase64
protected final Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResult fromBase64(com.oracle.truffle.api.strings.TruffleString string, boolean base64url, int maxLength, com.oracle.truffle.api.strings.TruffleString lastChunkHandling, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode) -
estimateDecodedByteLengthFromBase64
protected static int estimateDecodedByteLengthFromBase64(com.oracle.truffle.api.strings.TruffleString src, int len, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode) Calculates the longest expectable decoded byte length from the given base64 input string. The actual result length may be shorter in case of errors or skipped whitespace. -
fromHex
protected final Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResult fromHex(com.oracle.truffle.api.strings.TruffleString string, int maxLength, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode) -
syntaxError
-
getStringOption
protected final com.oracle.truffle.api.strings.TruffleString getStringOption(Object opts, com.oracle.truffle.api.strings.TruffleString key, com.oracle.truffle.api.strings.TruffleString[] allowedValues, com.oracle.truffle.api.strings.TruffleString defaultValue, PropertyGetNode getOptionValueNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalNode)
-