- int p = pos[i];
- ir_node *param = get_Call_param(irn, p);
- ir_node *addr = curr_sp;
- ir_node *mem = NULL;
- type *param_type = get_method_param_type(mt, p);
- int param_size = get_type_size_bytes(param_type);
+ int p = pos[i];
+ be_abi_call_arg_t *arg = get_call_arg(call, 0, p);
+ ir_node *param = get_Call_param(irn, p);
+ ir_node *addr = curr_sp;
+ ir_node *mem = NULL;
+ type *param_type = get_method_param_type(mt, p);
+ int param_size = get_type_size_bytes(param_type) + arg->space_after;
+
+ curr_ofs += arg->space_before;
+ curr_ofs = round_up2(curr_ofs, arg->alignment);