@@ -2316,14 +2316,6 @@ STATIC void emit_native_call_function(emit_t *emit, mp_uint_t n_positional, mp_u
23162316 } else {
23172317 assert (vtype_fun == VTYPE_PYOBJ );
23182318 if (star_flags ) {
2319- if (!(star_flags & MP_EMIT_STAR_FLAG_SINGLE )) {
2320- // load dummy entry for non-existent pos_seq
2321- emit_native_load_null (emit );
2322- emit_native_rot_two (emit );
2323- } else if (!(star_flags & MP_EMIT_STAR_FLAG_DOUBLE )) {
2324- // load dummy entry for non-existent kw_dict
2325- emit_native_load_null (emit );
2326- }
23272319 emit_get_stack_pointer_to_reg_for_pop (emit , REG_ARG_3 , n_positional + 2 * n_keyword + 3 ); // pointer to args
23282320 emit_call_with_2_imm_args (emit , MP_F_CALL_METHOD_N_KW_VAR , 0 , REG_ARG_1 , n_positional | (n_keyword << 8 ), REG_ARG_2 );
23292321 emit_post_push_reg (emit , VTYPE_PYOBJ , REG_RET );
@@ -2340,14 +2332,6 @@ STATIC void emit_native_call_function(emit_t *emit, mp_uint_t n_positional, mp_u
23402332
23412333STATIC void emit_native_call_method (emit_t * emit , mp_uint_t n_positional , mp_uint_t n_keyword , mp_uint_t star_flags ) {
23422334 if (star_flags ) {
2343- if (!(star_flags & MP_EMIT_STAR_FLAG_SINGLE )) {
2344- // load dummy entry for non-existent pos_seq
2345- emit_native_load_null (emit );
2346- emit_native_rot_two (emit );
2347- } else if (!(star_flags & MP_EMIT_STAR_FLAG_DOUBLE )) {
2348- // load dummy entry for non-existent kw_dict
2349- emit_native_load_null (emit );
2350- }
23512335 emit_get_stack_pointer_to_reg_for_pop (emit , REG_ARG_3 , n_positional + 2 * n_keyword + 4 ); // pointer to args
23522336 emit_call_with_2_imm_args (emit , MP_F_CALL_METHOD_N_KW_VAR , 1 , REG_ARG_1 , n_positional | (n_keyword << 8 ), REG_ARG_2 );
23532337 emit_post_push_reg (emit , VTYPE_PYOBJ , REG_RET );
0 commit comments