mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWasm: Avoid calculating stack bounds on each wasm call
We only need to know the initial bounds, which we calculate by default when the interpreter is constructed. This cuts down on syscalls and makes wasm calls a lot cheaper.
This commit is contained in:
parent
2b35e9f9be
commit
fa2ae02564
Notes:
sideshowbarker
2024-07-18 07:03:51 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/fa2ae025644 Pull-request: https://github.com/SerenityOS/serenity/pull/9278
1 changed files with 0 additions and 1 deletions
|
@ -31,7 +31,6 @@ namespace Wasm {
|
|||
|
||||
void BytecodeInterpreter::interpret(Configuration& configuration)
|
||||
{
|
||||
m_stack_info = {};
|
||||
m_trap.clear();
|
||||
auto& instructions = configuration.frame().expression().instructions();
|
||||
auto max_ip_value = InstructionPointer { instructions.size() };
|
||||
|
|
Loading…
Reference in a new issue