This commit is contained in:
Folkert 2023-09-03 16:57:44 +02:00
parent 5bda7dedc8
commit adf36109ab
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -600,9 +600,8 @@ where
size
}
fn copy_to_base_offset<'a, 'r, GeneralReg, FloatReg, ASM, CC>(
buf: &mut Vec<'a, u8>,
storage_manager: &mut StorageManager<'a, 'r, GeneralReg, FloatReg, ASM, CC>,
fn copy_to_base_offset<GeneralReg, FloatReg, ASM>(
buf: &mut Vec<'_, u8>,
dst_base_offset: i32,
stack_size: u32,
ptr_reg: GeneralReg,
@ -612,7 +611,6 @@ fn copy_to_base_offset<'a, 'r, GeneralReg, FloatReg, ASM, CC>(
FloatReg: RegTrait,
GeneralReg: RegTrait,
ASM: Assembler<GeneralReg, FloatReg>,
CC: CallConv<GeneralReg, FloatReg, ASM>,
{
let mut copied = 0;
let size = stack_size as i32;
@ -1082,9 +1080,8 @@ impl X64_64WindowsFastCallLoadArgs {
let base_offset = storage_manager.claim_stack_area(&sym, stack_size);
let tmp_reg = X86_64WindowsFastcall::GENERAL_RETURN_REGS[0];
copy_to_base_offset(
copy_to_base_offset::<_, _, ASM>(
buf,
storage_manager,
base_offset,
stack_size,
*ptr_reg,