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

Function EXPECTED_TRY

lib/executor/engine/refInstr.cpp:134–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 const bool IsSigned) const noexcept {
133 const RefVariant Ref = StackMgr.getTop().get<RefVariant>();
134 EXPECTED_TRY(
135 auto Val,
136 structGet(StackMgr, Ref, TypeIdx, Off, IsSigned).map_error([&](auto E) {
137 return logError(E, Instr);
138 }));
139 StackMgr.getTop() = Val;
140 return {};
141}

Callers 15

runStructSetOpMethod · 0.70
runArraySetOpMethod · 0.70
runArrayFillOpMethod · 0.70
runArrayCopyOpMethod · 0.70
runArrayInitDataOpMethod · 0.70
runArrayInitElemOpMethod · 0.70
runMemoryCopyOpMethod · 0.70
executeMethod · 0.70
proxyCallMethod · 0.70
proxyCallIndirectMethod · 0.70
proxyCallRefMethod · 0.70
runAtomicNotifyOpMethod · 0.70

Calls 5

logErrorFunction · 0.85
logMemoryOOBFunction · 0.85
logTableOOBFunction · 0.85
logArrayOOBFunction · 0.85
getBitWidthMethod · 0.80

Tested by

no test coverage detected