mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47: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:
parent
decc221109
commit
10bf25999c
1 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@ private:
|
||||||
static constexpr auto ARG3 = Assembler::Reg::RCX;
|
static constexpr auto ARG3 = Assembler::Reg::RCX;
|
||||||
static constexpr auto RET = Assembler::Reg::RAX;
|
static constexpr auto RET = Assembler::Reg::RAX;
|
||||||
static constexpr auto STACK_POINTER = Assembler::Reg::RSP;
|
static constexpr auto STACK_POINTER = Assembler::Reg::RSP;
|
||||||
static constexpr auto REGISTER_ARRAY_BASE = Assembler::Reg::R8;
|
static constexpr auto REGISTER_ARRAY_BASE = Assembler::Reg::R13;
|
||||||
static constexpr auto LOCALS_ARRAY_BASE = Assembler::Reg::R9;
|
static constexpr auto LOCALS_ARRAY_BASE = Assembler::Reg::R14;
|
||||||
static constexpr auto UNWIND_CONTEXT_BASE = Assembler::Reg::R10;
|
static constexpr auto UNWIND_CONTEXT_BASE = Assembler::Reg::R15;
|
||||||
|
|
||||||
void compile_load_immediate(Bytecode::Op::LoadImmediate const&);
|
void compile_load_immediate(Bytecode::Op::LoadImmediate const&);
|
||||||
void compile_load(Bytecode::Op::Load const&);
|
void compile_load(Bytecode::Op::Load const&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue