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
commit 10bf25999c
Notes: sideshowbarker 2024-07-17 04:10:16 +09:00

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