mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
LibJS/JIT: Use mov() helper in Assembler::native_call()
This commit is contained in:
parent
e7ce3d271a
commit
1e8c6d3b06
1 changed files with 4 additions and 4 deletions
|
@ -396,10 +396,10 @@ struct Assembler {
|
||||||
// align the stack to 16-byte boundary
|
// align the stack to 16-byte boundary
|
||||||
sub(Operand::Register(Reg::RSP), Operand::Imm8(8));
|
sub(Operand::Register(Reg::RSP), Operand::Imm8(8));
|
||||||
|
|
||||||
// load callee into RAX and make indirect call
|
// load callee into RAX
|
||||||
emit8(0x48);
|
mov(Operand::Register(Reg::RAX), Operand::Imm64(bit_cast<u64>(callee)));
|
||||||
emit8(0xb8);
|
|
||||||
emit64((u64)callee);
|
// call RAX
|
||||||
emit8(0xff);
|
emit8(0xff);
|
||||||
emit8(0xd0);
|
emit8(0xd0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue