Class ExportableFunction
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.Container
de.mirkosertic.bytecoder.core.backend.wasm.ast.Function
de.mirkosertic.bytecoder.core.backend.wasm.ast.ExportableFunction
- All Implemented Interfaces:
Callable,Exportable,Importable
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidlocalByLabel(String label) toTable()voidwriteCodeTo(BinaryWriter.Writer sectionWriter, FunctionIndex functionIndex) voidwriteRefTo(TextWriter textWriter) voidwriteTo(TextWriter textWriter, Module aModule, WasmValue.ExportContext exportContext) Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.Function
getFunctionType, getLabel, getModule, getParams, getResultType, resolveIndex, resolveResultTypeMethods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.Container
addChild, end, findByLabelInHierarchy, getChildren, hasChildren, parent, relativeDepthTo, relativeDepthTo
-
Method Details
-
exportAs
-
localByLabel
-
localIndex
-
newLocal
-
writeTo
public void writeTo(TextWriter textWriter, Module aModule, WasmValue.ExportContext exportContext) throws IOException - Specified by:
writeToin interfaceImportable- Overrides:
writeToin classFunction- Throws:
IOException
-
writeRefTo
- Specified by:
writeRefToin interfaceExportable
-
writeCodeTo
public void writeCodeTo(BinaryWriter.Writer sectionWriter, FunctionIndex functionIndex) throws IOException - Throws:
IOException
-
toTable
-