From f91fa79fc53cc0f9ee0a55fa89bced0941c8d224 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 24 May 2021 01:28:02 +0430 Subject: [PATCH] LibWasm: Use the current configuration to run call ops This should make it easier to implement multiple types of interpreters on top of a configuration, and also give a small speed boost in not initialising as many Stack objects. --- .../LibWasm/AbstractMachine/Configuration.cpp | 11 ++++++++++ .../LibWasm/AbstractMachine/Configuration.h | 22 +++++++++++++++++++ .../LibWasm/AbstractMachine/Interpreter.cpp | 12 +++++----- 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Configuration.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Configuration.cpp index b73f25261e..eb085d7476 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Configuration.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/Configuration.cpp @@ -22,6 +22,16 @@ Optional