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

LibWasm: Avoid excessive pop()-then-push() on the stack

Also make the stack a lot bigger, since we now have only one of these
instead of one per function call.
This commit is contained in:
Ali Mohammad Pur 2021-05-25 01:38:02 +04:30 committed by Ali Mohammad Pur
parent c022b6d74e
commit 578bf6c45e
3 changed files with 74 additions and 79 deletions

View file

@ -39,7 +39,8 @@ struct BytecodeInterpreter : public Interpreter {
protected:
virtual void interpret(Configuration&, InstructionPointer&, const Instruction&);
void branch_to_label(Configuration&, LabelIndex);
ReadonlyBytes load_from_memory(Configuration&, const Instruction&, size_t);
template<typename ReadT, typename PushT>
void load_and_push(Configuration&, const Instruction&);
void store_to_memory(Configuration&, const Instruction&, ReadonlyBytes data);
void call_address(Configuration&, FunctionAddress);