mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibJS/JIT: Fix crash in CallWithArgumentArray
This commit is contained in:
parent
40ecf7689b
commit
9258e253ca
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