From 10bf25999c218b915ba561f9d775183d22111d75 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 20 Oct 2023 13:06:21 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibJS/JIT/Compiler.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibJS/JIT/Compiler.h b/Userland/Libraries/LibJS/JIT/Compiler.h index 51c6d2c452..5941172249 100644 --- a/Userland/Libraries/LibJS/JIT/Compiler.h +++ b/Userland/Libraries/LibJS/JIT/Compiler.h @@ -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&);