summaryrefslogtreecommitdiff
path: root/py/emitnx86.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-11-07 19:43:23 +1100
committerDamien George <damien.p.george@gmail.com>2019-11-07 19:43:23 +1100
commit7e374d2317d869b3471c980e1e3cd65f2f43e450 (patch)
treecedd9fa839bb25dc5289d669c16bbfe14ea46c31 /py/emitnx86.c
parentcea9209e0f16d0849426f418316eeafbc91f60dc (diff)
py/emitnx86: Make mp_f_n_args table match order of mp_fun_kind_t.
Diffstat (limited to 'py/emitnx86.c')
-rw-r--r--py/emitnx86.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/py/emitnx86.c b/py/emitnx86.c
index 0122e46ba..790cae04c 100644
--- a/py/emitnx86.c
+++ b/py/emitnx86.c
@@ -34,13 +34,11 @@ STATIC byte mp_f_n_args[MP_F_NUMBER_OF] = {
[MP_F_BINARY_OP] = 3,
[MP_F_BUILD_TUPLE] = 2,
[MP_F_BUILD_LIST] = 2,
- [MP_F_LIST_APPEND] = 2,
[MP_F_BUILD_MAP] = 1,
- [MP_F_STORE_MAP] = 3,
- #if MICROPY_PY_BUILTINS_SET
[MP_F_BUILD_SET] = 2,
[MP_F_STORE_SET] = 2,
- #endif
+ [MP_F_LIST_APPEND] = 2,
+ [MP_F_STORE_MAP] = 3,
[MP_F_MAKE_FUNCTION_FROM_RAW_CODE] = 3,
[MP_F_NATIVE_CALL_FUNCTION_N_KW] = 3,
[MP_F_CALL_METHOD_N_KW] = 3,
@@ -53,9 +51,7 @@ STATIC byte mp_f_n_args[MP_F_NUMBER_OF] = {
[MP_F_IMPORT_NAME] = 3,
[MP_F_IMPORT_FROM] = 2,
[MP_F_IMPORT_ALL] = 1,
- #if MICROPY_PY_BUILTINS_SLICE
[MP_F_NEW_SLICE] = 3,
- #endif
[MP_F_UNPACK_SEQUENCE] = 3,
[MP_F_UNPACK_EX] = 3,
[MP_F_DELETE_NAME] = 1,
@@ -66,6 +62,7 @@ STATIC byte mp_f_n_args[MP_F_NUMBER_OF] = {
[MP_F_SMALL_INT_FLOOR_DIVIDE] = 2,
[MP_F_SMALL_INT_MODULO] = 2,
[MP_F_NATIVE_YIELD_FROM] = 3,
+ [MP_F_SETJMP] = 1,
};
#define N_X86 (1)