From 523b575039d96d63669ad8c1fa318ba4db046aca Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 31 Mar 2014 11:59:23 +0100 Subject: py: Add LOAD_NULL bytecode and use it to simplify function calls. Adding this bytecode allows to remove 4 others related to function/method calls with * and ** support. Will also help with bytecodes that make functions/closures with default positional and keyword args. --- py/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/runtime.h') diff --git a/py/runtime.h b/py/runtime.h index f79cb2e306..d71e045b01 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -43,7 +43,7 @@ mp_obj_t mp_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); mp_obj_t mp_call_function_n_kw_for_native(mp_obj_t fun_in, uint n_args_kw, const mp_obj_t *args); mp_obj_t mp_call_function_n_kw(mp_obj_t fun, uint n_args, uint n_kw, const mp_obj_t *args); mp_obj_t mp_call_method_n_kw(uint n_args, uint n_kw, const mp_obj_t *args); -mp_obj_t mp_call_method_n_kw_var(bool have_self, uint n_args_n_kw, const mp_obj_t *args, mp_obj_t pos_seq, mp_obj_t kw_dict); +mp_obj_t mp_call_method_n_kw_var(bool have_self, uint n_args_n_kw, const mp_obj_t *args); mp_obj_t mp_build_tuple(int n_args, mp_obj_t *items); mp_obj_t mp_build_list(int n_args, mp_obj_t *items); -- cgit v1.2.3