MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / unsafeExecuteComponent

Method unsafeExecuteComponent

lib/vm/vm.cpp:521–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521Expect<std::vector<std::pair<ComponentValVariant, ComponentValType>>>
522VM::unsafeExecuteComponent(std::string_view Func,
523 Span<const ComponentValVariant> Params,
524 Span<const ComponentValType> ParamTypes) {
525 if (unlikely(!ActiveCompInst)) {
526 spdlog::error(ErrCode::Value::WrongInstanceAddress);
527 spdlog::error(ErrInfo::InfoExecuting("When invoking"sv, Func));
528 return Unexpect(ErrCode::Value::WrongInstanceAddress);
529 }
530 return unsafeExecuteComponent(ActiveCompInst.get(), Func, Params, ParamTypes);
531}
532
533Expect<std::vector<std::pair<ComponentValVariant, ComponentValType>>>
534VM::unsafeExecuteComponent(std::string_view CompName, std::string_view Func,

Callers

nothing calls this directly

Calls 9

unlikelyFunction · 0.85
InfoExecutingClass · 0.85
UnexpectFunction · 0.85
getComponentNameMethod · 0.80
errorFunction · 0.50
getMethod · 0.45
findComponentMethod · 0.45
findFunctionMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected