Class ExportByteSourceNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.wasm.ExportByteSourceNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Exports byte source such that it can be read by WASM.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExportByteSourceNode(JSContext context, String nonByteSourceMessage, String emptyByteSourceMessage) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportByteSourceNodeabstract org.graalvm.polyglot.io.ByteSequenceprotected org.graalvm.polyglot.io.ByteSequenceexportBuffer(JSArrayBufferObject arrayBuffer, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) protected org.graalvm.polyglot.io.ByteSequenceexportDataView(JSDataViewObject dataView, GetViewByteLengthNode getByteLengthNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) protected org.graalvm.polyglot.io.ByteSequenceexportOther(Object other) protected org.graalvm.polyglot.io.ByteSequenceexportTypedArray(JSTypedArrayObject typedArray, ArrayBufferViewGetByteLengthNode getByteLengthNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) Methods inherited from class JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
ExportByteSourceNode
-
-
Method Details
-
execute
-
create
public static ExportByteSourceNode create(JSContext context, String nonByteSourceMessage, String emptyByteSourceMessage) -
exportBuffer
protected org.graalvm.polyglot.io.ByteSequence exportBuffer(JSArrayBufferObject arrayBuffer, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
exportTypedArray
protected org.graalvm.polyglot.io.ByteSequence exportTypedArray(JSTypedArrayObject typedArray, ArrayBufferViewGetByteLengthNode getByteLengthNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
exportDataView
protected org.graalvm.polyglot.io.ByteSequence exportDataView(JSDataViewObject dataView, GetViewByteLengthNode getByteLengthNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
exportOther
-