mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
LibJS/JIT: Compile the Call bytecode instruction
I've left a FIXME about dealing with some throwsy cases.
This commit is contained in:
parent
7fc35fde09
commit
640455b1d2
5 changed files with 43 additions and 12 deletions
|
@ -25,6 +25,7 @@ private:
|
|||
static constexpr auto ARG2 = Assembler::Reg::RDX;
|
||||
static constexpr auto ARG3 = Assembler::Reg::RCX;
|
||||
static constexpr auto ARG4 = Assembler::Reg::R8;
|
||||
static constexpr auto ARG5 = Assembler::Reg::R9;
|
||||
static constexpr auto RET = Assembler::Reg::RAX;
|
||||
static constexpr auto STACK_POINTER = Assembler::Reg::RSP;
|
||||
static constexpr auto REGISTER_ARRAY_BASE = Assembler::Reg::R13;
|
||||
|
@ -61,6 +62,8 @@ private:
|
|||
|
||||
void compile_put_by_id(Bytecode::Op::PutById const&);
|
||||
|
||||
void compile_call(Bytecode::Op::Call const&);
|
||||
|
||||
void store_vm_register(Bytecode::Register, Assembler::Reg);
|
||||
void load_vm_register(Assembler::Reg, Bytecode::Register);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue