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

Method proxyTableInit

lib/executor/engine/proxy.cpp:436–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436Expect<void> Executor::proxyTableInit(Runtime::StackManager &StackMgr,
437 const uint32_t TableIdx,
438 const uint32_t ElemIdx,
439 const uint64_t DstOff,
440 const uint32_t SrcOff,
441 const uint32_t Len) noexcept {
442 auto *TabInst = getTabInstByIdx(StackMgr, TableIdx);
443 assuming(TabInst);
444 auto *ElemInst = getElemInstByIdx(StackMgr, ElemIdx);
445 assuming(ElemInst);
446 return TabInst->setRefs(ElemInst->getRefs(), DstOff, SrcOff, Len);
447}
448
449Expect<void> Executor::proxyElemDrop(Runtime::StackManager &StackMgr,
450 const uint32_t ElemIdx) noexcept {

Callers

nothing calls this directly

Calls 2

setRefsMethod · 0.80
getRefsMethod · 0.45

Tested by

no test coverage detected