mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibJIT: Make X86_64Assembler::native_call take u64 instead of void*
Now that x86-specific Assembler will be compiled on every architecture we can't rely on void* being the right width. It also fixes compilation on targets which have void* be different length from u64 (WASM in particular).
This commit is contained in:
parent
8aa35f4fab
commit
bacbd830fe
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/nrabulinski
Commit: bacbd830fe
Pull-request: https://github.com/SerenityOS/serenity/pull/21679
Issue: https://github.com/SerenityOS/serenity/issues/21669
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/caoimhebyrne
2 changed files with 4 additions and 4 deletions
|
@ -1919,7 +1919,7 @@ void Compiler::native_call(void* function_address, Vector<Assembler::Operand> co
|
|||
{
|
||||
// NOTE: We don't preserve caller-saved registers when making a native call.
|
||||
// This means that they may have changed after we return from the call.
|
||||
m_assembler.native_call(function_address, { Assembler::Operand::Register(ARG0) }, stack_arguments);
|
||||
m_assembler.native_call(bit_cast<u64>(function_address), { Assembler::Operand::Register(ARG0) }, stack_arguments);
|
||||
}
|
||||
|
||||
OwnPtr<NativeExecutable> Compiler::compile(Bytecode::Executable& bytecode_executable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue