1
Fork 0
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:
Andreas Kling 2023-05-28 12:13:43 +02:00
parent 4cc1de1b03
commit f5bf53bc99
4 changed files with 17 additions and 4 deletions

View file

@ -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)
{