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

Method runArrayFillOp

lib/executor/engine/refInstr.cpp:252–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252Expect<void>
253Executor::runArrayFillOp(Runtime::StackManager &StackMgr, const uint32_t Cnt,
254 const ValVariant &Val, const uint32_t TypeIdx,
255 const AST::Instruction &Instr) const noexcept {
256 const uint32_t Idx = StackMgr.pop().get<uint32_t>();
257 const RefVariant Ref = StackMgr.pop().get<RefVariant>();
258 EXPECTED_TRY(
259 arrayFill(StackMgr, Ref, Val, TypeIdx, Idx, Cnt).map_error([&](auto E) {
260 return logError(E, Instr,
261 [&]() { return logArrayOOB(E, Idx, Cnt, Ref); });
262 }));
263 return {};
264}
265
266Expect<void>
267Executor::runArrayCopyOp(Runtime::StackManager &StackMgr, const uint32_t Cnt,

Callers

nothing calls this directly

Calls 4

logErrorFunction · 0.85
logArrayOOBFunction · 0.85
popMethod · 0.80
EXPECTED_TRYFunction · 0.70

Tested by

no test coverage detected