| 387 | } |
| 388 | |
| 389 | Expect<void> Executor::runRefI31Op(ValVariant &Val) const noexcept { |
| 390 | uint32_t RefNum = (Val.get<uint32_t>() & 0x7FFFFFFFU) | 0x80000000U; |
| 391 | Val = RefVariant(ValType(TypeCode::Ref, TypeCode::I31Ref), |
| 392 | reinterpret_cast<void *>(static_cast<uint64_t>(RefNum))); |
| 393 | return {}; |
| 394 | } |
| 395 | |
| 396 | Expect<void> Executor::runI31GetOp(ValVariant &Val, |
| 397 | const AST::Instruction &Instr, |
nothing calls this directly
no test coverage detected