py/asmx86: Remove unused 5th argument facility.
In commit71a3d6ec3b
mp_setup_code_state was changed from a 5-arg function to a 4-arg function, and at that point 5-arg calls in native code were no longer needed. See also commit4f9842ad80
.
This commit is contained in:
parent
b97fb683d0
commit
ab75210e33
|
@ -497,7 +497,7 @@ void asm_x86_push_local_addr(asm_x86_t *as, int local_num, int temp_r32)
|
|||
#endif
|
||||
|
||||
void asm_x86_call_ind(asm_x86_t *as, size_t fun_id, mp_uint_t n_args, int temp_r32) {
|
||||
assert(n_args <= 5);
|
||||
assert(n_args <= 4);
|
||||
|
||||
// Align stack on 16-byte boundary during the call
|
||||
unsigned int align = ((n_args + 3) & ~3) - n_args;
|
||||
|
@ -505,9 +505,6 @@ void asm_x86_call_ind(asm_x86_t *as, size_t fun_id, mp_uint_t n_args, int temp_r
|
|||
asm_x86_sub_r32_i32(as, ASM_X86_REG_ESP, align * WORD_SIZE);
|
||||
}
|
||||
|
||||
if (n_args > 4) {
|
||||
asm_x86_push_r32(as, ASM_X86_REG_ARG_5);
|
||||
}
|
||||
if (n_args > 3) {
|
||||
asm_x86_push_r32(as, ASM_X86_REG_ARG_4);
|
||||
}
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#define ASM_X86_REG_ARG_2 ASM_X86_REG_ECX
|
||||
#define ASM_X86_REG_ARG_3 ASM_X86_REG_EDX
|
||||
#define ASM_X86_REG_ARG_4 ASM_X86_REG_EBX
|
||||
#define ASM_X86_REG_ARG_5 ASM_X86_REG_ESI
|
||||
|
||||
// condition codes, used for jcc and setcc (despite their j-name!)
|
||||
#define ASM_X86_CC_JB (0x2) // below, unsigned
|
||||
|
@ -129,7 +128,6 @@ void asm_x86_call_ind(asm_x86_t* as, size_t fun_id, mp_uint_t n_args, int temp_r
|
|||
#define REG_ARG_2 ASM_X86_REG_ARG_2
|
||||
#define REG_ARG_3 ASM_X86_REG_ARG_3
|
||||
#define REG_ARG_4 ASM_X86_REG_ARG_4
|
||||
#define REG_ARG_5 ASM_X86_REG_ARG_5
|
||||
|
||||
// caller-save, so can be used as temporaries
|
||||
#define REG_TEMP0 ASM_X86_REG_EAX
|
||||
|
|
Loading…
Reference in New Issue