mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibWasm: Implement reference instructions (ref.{null,func,is_null})
This commit is contained in:
parent
7fb458b7c9
commit
56bf80251c
8 changed files with 73 additions and 9 deletions
|
@ -85,6 +85,8 @@ void Configuration::dump_stack()
|
|||
v.value().visit([]<typename T>(const T& v) {
|
||||
if constexpr (IsIntegral<T> || IsFloatingPoint<T>)
|
||||
dbgln(" {}", v);
|
||||
else if constexpr (IsSame<Value::Null, T>)
|
||||
dbgln(" *null");
|
||||
else
|
||||
dbgln(" *{}", v.value());
|
||||
});
|
||||
|
@ -95,6 +97,8 @@ void Configuration::dump_stack()
|
|||
local.value().visit([]<typename T>(const T& v) {
|
||||
if constexpr (IsIntegral<T> || IsFloatingPoint<T>)
|
||||
dbgln(" {}", v);
|
||||
else if constexpr (IsSame<Value::Null, T>)
|
||||
dbgln(" *null");
|
||||
else
|
||||
dbgln(" *{}", v.value());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue