1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibWasm: Replace memory write macros with templated functions

This commit is contained in:
Ali Mohammad Pur 2021-08-11 22:16:05 +04:30 committed by Andreas Kling
parent b6381f785d
commit 4060f18d7e
2 changed files with 78 additions and 76 deletions

View file

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