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

Method runMemorySizeOp

lib/executor/engine/memoryInstr.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace Executor {
10
11Expect<void>
12Executor::runMemorySizeOp(Runtime::StackManager &StackMgr,
13 Runtime::Instance::MemoryInstance &MemInst) {
14 // Push SZ = page size to the stack.
15 const auto AddrType = MemInst.getMemoryType().getLimit().getAddrType();
16 StackMgr.push(emplaceAddr(MemInst.getPageSize(), AddrType));
17 return {};
18}
19
20Expect<void>
21Executor::runMemoryGrowOp(Runtime::StackManager &StackMgr,

Callers

nothing calls this directly

Calls 4

emplaceAddrFunction · 0.85
getAddrTypeMethod · 0.80
pushMethod · 0.80
getPageSizeMethod · 0.80

Tested by

no test coverage detected