1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

LibJS+LibJIT: Let users of JIT::Assembler handle caller-saved registers

Instead of JIT::Assembler making the decision for everyone and forcing
out every caller-saved register in the ABI onto the stack, we now leave
that decision to users of JIT::Assembler.
This commit is contained in:
Andreas Kling 2023-10-28 14:22:07 +02:00
parent 9afd12a8ba
commit 926786e8d1
3 changed files with 55 additions and 47 deletions

View file

@ -129,6 +129,8 @@ private:
void jump_to_exit();
void native_call(void* function_address, Vector<Assembler::Operand> const& stack_arguments = {});
template<typename Codegen>
void branch_if_int32(Assembler::Reg, Codegen);