mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-18 21:55:45 +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:
committed by
Andreas Kling
parent
2b35e9f9be
commit
fa2ae02564
@@ -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() };
|
||||
|
||||
Reference in New Issue
Block a user