1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

LibJS/JIT: Support the GetById bytecode op

We can now do basic property (get) access in jitted code! :^)
This commit is contained in:
Andreas Kling 2023-10-18 13:27:56 +02:00
parent 8905682a16
commit 6a6ef6670c
3 changed files with 28 additions and 0 deletions

View file

@ -23,6 +23,7 @@ private:
static constexpr auto ARG0 = Assembler::Reg::RDI;
static constexpr auto ARG1 = Assembler::Reg::RSI;
static constexpr auto ARG2 = Assembler::Reg::RDX;
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;
@ -49,6 +50,7 @@ private:
void compile_return(Bytecode::Op::Return const&);
void compile_new_string(Bytecode::Op::NewString const&);
void compile_get_by_id(Bytecode::Op::GetById const&);
void store_vm_register(Bytecode::Register, Assembler::Reg);
void load_vm_register(Assembler::Reg, Bytecode::Register);