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

Method runRefNullOp

lib/executor/engine/refInstr.cpp:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74} // namespace
75
76Expect<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
83Expect<void> Executor::runRefIsNullOp(ValVariant &Val) const noexcept {
84 Val.emplace<uint32_t>(Val.get<RefVariant>().isNull() ? 1U : 0U);

Callers

nothing calls this directly

Calls 2

RefVariantClass · 0.85
pushMethod · 0.80

Tested by

no test coverage detected