Search in sources :

Example 1 with CodeEntrySym

use of org.graalvm.wasm.Linker.ResolutionDag.CodeEntrySym in project graal by oracle.

the class Linker method resolveCallsite.

void resolveCallsite(WasmInstance instance, WasmBlockNode block, int controlTableOffset, WasmFunction function) {
    final Runnable resolveAction = () -> block.resolveCallNode(controlTableOffset);
    final Sym[] dependencies = new Sym[] { function.isImported() ? new ImportFunctionSym(instance.name(), function.importDescriptor(), function.index()) : new CodeEntrySym(instance.name(), function.index()) };
    resolutionDag.resolveLater(new CallsiteSym(instance.name(), block.startOffset(), controlTableOffset), dependencies, resolveAction);
}
Also used : CodeEntrySym(org.graalvm.wasm.Linker.ResolutionDag.CodeEntrySym) CallsiteSym(org.graalvm.wasm.Linker.ResolutionDag.CallsiteSym) ElemSym(org.graalvm.wasm.Linker.ResolutionDag.ElemSym) ExportMemorySym(org.graalvm.wasm.Linker.ResolutionDag.ExportMemorySym) ExportTableSym(org.graalvm.wasm.Linker.ResolutionDag.ExportTableSym) InitializeGlobalSym(org.graalvm.wasm.Linker.ResolutionDag.InitializeGlobalSym) ExportFunctionSym(org.graalvm.wasm.Linker.ResolutionDag.ExportFunctionSym) CodeEntrySym(org.graalvm.wasm.Linker.ResolutionDag.CodeEntrySym) CallsiteSym(org.graalvm.wasm.Linker.ResolutionDag.CallsiteSym) ImportMemorySym(org.graalvm.wasm.Linker.ResolutionDag.ImportMemorySym) ExportGlobalSym(org.graalvm.wasm.Linker.ResolutionDag.ExportGlobalSym) ImportFunctionSym(org.graalvm.wasm.Linker.ResolutionDag.ImportFunctionSym) Sym(org.graalvm.wasm.Linker.ResolutionDag.Sym) ImportTableSym(org.graalvm.wasm.Linker.ResolutionDag.ImportTableSym) ImportGlobalSym(org.graalvm.wasm.Linker.ResolutionDag.ImportGlobalSym) DataSym(org.graalvm.wasm.Linker.ResolutionDag.DataSym) ImportFunctionSym(org.graalvm.wasm.Linker.ResolutionDag.ImportFunctionSym)

Aggregations

CallsiteSym (org.graalvm.wasm.Linker.ResolutionDag.CallsiteSym)1 CodeEntrySym (org.graalvm.wasm.Linker.ResolutionDag.CodeEntrySym)1 DataSym (org.graalvm.wasm.Linker.ResolutionDag.DataSym)1 ElemSym (org.graalvm.wasm.Linker.ResolutionDag.ElemSym)1 ExportFunctionSym (org.graalvm.wasm.Linker.ResolutionDag.ExportFunctionSym)1 ExportGlobalSym (org.graalvm.wasm.Linker.ResolutionDag.ExportGlobalSym)1 ExportMemorySym (org.graalvm.wasm.Linker.ResolutionDag.ExportMemorySym)1 ExportTableSym (org.graalvm.wasm.Linker.ResolutionDag.ExportTableSym)1 ImportFunctionSym (org.graalvm.wasm.Linker.ResolutionDag.ImportFunctionSym)1 ImportGlobalSym (org.graalvm.wasm.Linker.ResolutionDag.ImportGlobalSym)1 ImportMemorySym (org.graalvm.wasm.Linker.ResolutionDag.ImportMemorySym)1 ImportTableSym (org.graalvm.wasm.Linker.ResolutionDag.ImportTableSym)1 InitializeGlobalSym (org.graalvm.wasm.Linker.ResolutionDag.InitializeGlobalSym)1 Sym (org.graalvm.wasm.Linker.ResolutionDag.Sym)1