summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-09 12:43:17 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-09 12:43:17 +0100
commit922ddd64155b3893f71cbf0b0c71a4cffbe4b1c8 (patch)
tree290159fd07150a2365c7861a3607484aed6fa549 /py/emitnative.c
parent78035b995ff7bd518cc1291aa70c966b53510fd9 (diff)
downloadmicropython-922ddd64155b3893f71cbf0b0c71a4cffbe4b1c8.tar.gz
micropython-922ddd64155b3893f71cbf0b0c71a4cffbe4b1c8.zip
py, compile: Combine have_star_arg, have_dbl_star_arg into star_flags.
Small reduction in ROM, heap and stack usage.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index a02b125d0c..600960f309 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -1200,9 +1200,9 @@ STATIC void emit_native_make_closure(emit_t *emit, scope_t *scope, uint n_pos_de
assert(0);
}
-STATIC void emit_native_call_function(emit_t *emit, int n_positional, int n_keyword, bool have_star_arg, bool have_dbl_star_arg) {
+STATIC void emit_native_call_function(emit_t *emit, int n_positional, int n_keyword, uint star_flags) {
// call special viper runtime routine with type info for args, and wanted type info for return
- assert(!have_star_arg && !have_dbl_star_arg);
+ assert(!star_flags);
/* we no longer have these _n specific call_function's
* they anyway push args into an array
@@ -1239,8 +1239,8 @@ STATIC void emit_native_call_function(emit_t *emit, int n_positional, int n_keyw
emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET);
}
-STATIC void emit_native_call_method(emit_t *emit, int n_positional, int n_keyword, bool have_star_arg, bool have_dbl_star_arg) {
- assert(!have_star_arg && !have_dbl_star_arg);
+STATIC void emit_native_call_method(emit_t *emit, int n_positional, int n_keyword, uint star_flags) {
+ assert(!star_flags);
/*
if (n_positional == 0) {