summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-08-11 22:16:05 +0430
committerAndreas Kling <kling@serenityos.org>2021-08-12 21:03:53 +0200
commit4060f18d7efc8d87c6bc72ce55292967106060d1 (patch)
tree9b1e80ddcc6a829764c010471f3e87286be50185 /Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h
parentb6381f785d07ba9d12f51ea9a24f86014e39a036 (diff)
downloadserenity-4060f18d7efc8d87c6bc72ce55292967106060d1.zip
LibWasm: Replace memory write macros with templated functions
Diffstat (limited to 'Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h')
-rw-r--r--Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h
index 9a9912daed..8528578275 100644
--- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h
+++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h
@@ -37,6 +37,8 @@ protected:
void branch_to_label(Configuration&, LabelIndex);
template<typename ReadT, typename PushT>
void load_and_push(Configuration&, Instruction const&);
+ template<typename PopT, typename StoreT>
+ void pop_and_store(Configuration&, Instruction const&);
void store_to_memory(Configuration&, Instruction const&, ReadonlyBytes data);
void call_address(Configuration&, FunctionAddress);