mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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
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…
Add table
Reference in a new issue