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:
Ali Mohammad Pur 2021-08-12 00:57:50 +04:30 committed by Andreas Kling
parent 2b35e9f9be
commit fa2ae02564
Notes: sideshowbarker 2024-07-18 07:03:51 +09:00

View file

@ -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() };