use of org.graalvm.wasm.Linker.ResolutionDag.CallsiteSym 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);
}
Aggregations