mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWasm: Implement reference instructions (ref.{null,func,is_null})
This commit is contained in:
parent
7fb458b7c9
commit
56bf80251c
Notes:
sideshowbarker
2024-07-18 17:01:23 +09:00
Author: https://github.com/alimpfard
Commit: 56bf80251c
Pull-request: https://github.com/SerenityOS/serenity/pull/7670
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