瀏覽代碼

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 年之前
父節點
當前提交
fa2ae02564
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp

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

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