mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
LibJS/JIT: Fix crash in CallWithArgumentArray
This commit is contained in:
parent
40ecf7689b
commit
9258e253ca
Notes:
sideshowbarker
2024-07-17 06:51:48 +09:00
Author: https://github.com/summaryInfo 🔰
Commit: 9258e253ca
Pull-request: https://github.com/SerenityOS/serenity/pull/21655
1 changed files with 3 additions and 0 deletions
|
@ -937,6 +937,9 @@ void Compiler::compile_call_with_argument_array(Bytecode::Op::CallWithArgumentAr
|
|||
m_assembler.mov(
|
||||
Assembler::Operand::Register(ARG3),
|
||||
Assembler::Operand::Imm(to_underlying(op.call_type())));
|
||||
m_assembler.mov(
|
||||
Assembler::Operand::Register(ARG4),
|
||||
Assembler::Operand::Imm(bit_cast<u64>(&op.expression_string())));
|
||||
native_call((void*)cxx_call_with_argument_array);
|
||||
store_vm_register(Bytecode::Register::accumulator(), RET);
|
||||
check_exception();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue