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 TypeMethodDescriptionvoid
localByLabel
(String label) toTable()
void
writeCodeTo
(BinaryWriter.Writer sectionWriter, FunctionIndex functionIndex) void
writeRefTo
(TextWriter textWriter) void
writeTo
(TextWriter textWriter, Module aModule) Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.Function
getFunctionType, getLabel, getModule, getParams, getResultType, resolveIndex, resolveResultType
Methods 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
- Specified by:
writeTo
in interfaceImportable
- Overrides:
writeTo
in classFunction
- Throws:
IOException
-
writeRefTo
- Specified by:
writeRefTo
in interfaceExportable
-
writeCodeTo
public void writeCodeTo(BinaryWriter.Writer sectionWriter, FunctionIndex functionIndex) throws IOException - Throws:
IOException
-
toTable
-