mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00
LibWasm: Create AK::StackInfo once per AbstractMachine
This makes test-wasm about 20% faster on my Linux machine :^)
This commit is contained in:
parent
4cc1de1b03
commit
f5bf53bc99
4 changed files with 17 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/StackInfo.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/MappedFile.h>
|
||||
|
@ -25,7 +26,8 @@ static OwnPtr<Stream> g_stdout {};
|
|||
static OwnPtr<Wasm::Printer> g_printer {};
|
||||
static bool g_continue { false };
|
||||
static void (*old_signal)(int);
|
||||
static Wasm::DebuggerBytecodeInterpreter g_interpreter;
|
||||
static StackInfo g_stack_info;
|
||||
static Wasm::DebuggerBytecodeInterpreter g_interpreter(g_stack_info);
|
||||
|
||||
static void sigint_handler(int)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue