| 224 | } |
| 225 | |
| 226 | Expect<void> |
| 227 | Executor::runArraySetOp(Runtime::StackManager &StackMgr, const ValVariant &Val, |
| 228 | const uint32_t TypeIdx, |
| 229 | const AST::Instruction &Instr) const noexcept { |
| 230 | const uint32_t Idx = StackMgr.pop().get<uint32_t>(); |
| 231 | const RefVariant Ref = StackMgr.pop().get<RefVariant>(); |
| 232 | EXPECTED_TRY( |
| 233 | arraySet(StackMgr, Ref, Val, TypeIdx, Idx).map_error([&](auto E) { |
| 234 | return logError(E, Instr, |
| 235 | [&]() { return logArrayOOB(E, Idx, 1, Ref); }); |
| 236 | })); |
| 237 | return {}; |
| 238 | } |
| 239 | |
| 240 | Expect<void> |
| 241 | Executor::runArrayLenOp(ValVariant &Val, |
nothing calls this directly
no test coverage detected