diff options
| author | Damien George | 2018-02-24 23:10:20 +1100 |
|---|---|---|
| committer | Damien George | 2018-02-24 23:10:20 +1100 |
| commit | c0bcf00ed100181a532240d904395de11addcd33 (patch) | |
| tree | 0b706563c9c5f74a5912abe4878def2e06fcdbd3 /py/asmx86.h | |
| parent | 7dfa56e40e9c343cbf4a1726a4babecc69a6b732 (diff) | |
py/asm*.c: Remove unnecessary check for num_locals<0 in asm entry func.
All callers of the asm entry function guarantee that num_locals>=0, so no
need to add an explicit check for it. Use an assertion instead.
Also, the signature of asm_x86_entry is changed to match the other asm
entry functions.
Diffstat (limited to 'py/asmx86.h')
| -rw-r--r-- | py/asmx86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/asmx86.h b/py/asmx86.h index bd5895453..09559850c 100644 --- a/py/asmx86.h +++ b/py/asmx86.h @@ -104,7 +104,7 @@ void asm_x86_test_r8_with_r8(asm_x86_t* as, int src_r32_a, int src_r32_b); void asm_x86_setcc_r8(asm_x86_t* as, mp_uint_t jcc_type, int dest_r8); void asm_x86_jmp_label(asm_x86_t* as, mp_uint_t label); void asm_x86_jcc_label(asm_x86_t* as, mp_uint_t jcc_type, mp_uint_t label); -void asm_x86_entry(asm_x86_t* as, mp_uint_t num_locals); +void asm_x86_entry(asm_x86_t* as, int num_locals); void asm_x86_exit(asm_x86_t* as); void asm_x86_mov_arg_to_r32(asm_x86_t *as, int src_arg_num, int dest_r32); void asm_x86_mov_local_to_r32(asm_x86_t* as, int src_local_num, int dest_r32); |
