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

LibJS/JIT: Move VM pointers from R8,R9,R10 to R13,R14,R15

This way they don't clash with the SysV ABI function argument registers.
This commit is contained in:
Andreas Kling 2023-10-20 13:06:21 +02:00
parent decc221109
commit 10bf25999c

View file

@ -26,9 +26,9 @@ private:
static constexpr auto ARG3 = Assembler::Reg::RCX;
static constexpr auto RET = Assembler::Reg::RAX;
static constexpr auto STACK_POINTER = Assembler::Reg::RSP;
static constexpr auto REGISTER_ARRAY_BASE = Assembler::Reg::R8;
static constexpr auto LOCALS_ARRAY_BASE = Assembler::Reg::R9;
static constexpr auto UNWIND_CONTEXT_BASE = Assembler::Reg::R10;
static constexpr auto REGISTER_ARRAY_BASE = Assembler::Reg::R13;
static constexpr auto LOCALS_ARRAY_BASE = Assembler::Reg::R14;
static constexpr auto UNWIND_CONTEXT_BASE = Assembler::Reg::R15;
void compile_load_immediate(Bytecode::Op::LoadImmediate const&);
void compile_load(Bytecode::Op::Load const&);