Browse Source

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.
Ali Mohammad Pur 4 years ago
parent
commit
fa2ae02564

+ 0 - 1
Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp

@@ -31,7 +31,6 @@ namespace Wasm {
 
 
 void BytecodeInterpreter::interpret(Configuration& configuration)
 void BytecodeInterpreter::interpret(Configuration& configuration)
 {
 {
-    m_stack_info = {};
     m_trap.clear();
     m_trap.clear();
     auto& instructions = configuration.frame().expression().instructions();
     auto& instructions = configuration.frame().expression().instructions();
     auto max_ip_value = InstructionPointer { instructions.size() };
     auto max_ip_value = InstructionPointer { instructions.size() };