mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWasm: Don't put values and labels in OwnPtrs
Doing that was causing a lot of malloc/free traffic, but since there's no need to have a stable pointer to them, we can just store them by value. This makes execution significantly faster :^)
This commit is contained in:
parent
c7bc1f59d8
commit
73eb0785e0
Notes:
sideshowbarker
2024-07-18 17:20:01 +09:00
Author: https://github.com/alimpfard
Commit: 73eb0785e0
Pull-request: https://github.com/SerenityOS/serenity/pull/7482
Reviewed-by: https://github.com/ADKaster
5 changed files with 83 additions and 86 deletions
|
@ -22,7 +22,7 @@ public:
|
|||
{
|
||||
m_current_frame = frame.ptr();
|
||||
m_stack.push(move(frame));
|
||||
m_stack.push(make<Label>(m_current_frame->arity(), m_current_frame->expression().instructions().size()));
|
||||
m_stack.push(Label(m_current_frame->arity(), m_current_frame->expression().instructions().size()));
|
||||
}
|
||||
auto& frame() const { return m_current_frame; }
|
||||
auto& frame() { return m_current_frame; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue