| 74 | } // namespace |
| 75 | |
| 76 | Expect<void> Executor::runRefNullOp(Runtime::StackManager &StackMgr, |
| 77 | const ValType &Type) const noexcept { |
| 78 | // A null reference is typed with the least type in its respective hierarchy. |
| 79 | StackMgr.push(RefVariant(toBottomType(StackMgr, Type))); |
| 80 | return {}; |
| 81 | } |
| 82 | |
| 83 | Expect<void> Executor::runRefIsNullOp(ValVariant &Val) const noexcept { |
| 84 | Val.emplace<uint32_t>(Val.get<RefVariant>().isNull() ? 1U : 0U); |
nothing calls this directly
no test coverage detected