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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExportableFunction(Module aModule, FunctionType functionType, String label) ExportableFunction(Module aModule, FunctionType functionType, String label, WasmType result) ExportableFunction(Module aModule, FunctionType functionType, String label, List<Param> params) ExportableFunction(Module aModule, FunctionType functionType, String label, List<Param> params, WasmType result) -
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
-
Field Details
-
localIndex
-
-
Constructor Details
-
ExportableFunction
-
ExportableFunction
ExportableFunction(Module aModule, FunctionType functionType, String label, List<Param> params) -
ExportableFunction
ExportableFunction(Module aModule, FunctionType functionType, String label, WasmType result) -
ExportableFunction
ExportableFunction(Module aModule, FunctionType functionType, String label)
-
-
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
-