summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-10-02 15:01:56 +1000
committerDamien George <damien.p.george@gmail.com>2018-10-02 15:01:56 +1000
commit34af10d2ef545ecaf2c1824dac679af39d683e98 (patch)
tree265f0fd83c09868ce2cd05e90d3da0e28f867445
parent69e7903904750948176fbc567fc2f3728d467bf2 (diff)
py/emitnative: Clean up unused macro and forward function declarations.
-rw-r--r--py/emitnative.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index 828541fbb..1abdb6792 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -108,9 +108,6 @@
#define REG_GENERATOR_STATE (REG_LOCAL_3)
-// number of arguments to viper functions are limited to this value
-#define REG_ARG_NUM (4)
-
#define EMIT_NATIVE_VIPER_TYPE_ERROR(emit, ...) do { \
*emit->error_slot = mp_obj_new_exception_msg_varg(&mp_type_ViperTypeError, __VA_ARGS__); \
} while (0)
@@ -251,11 +248,7 @@ void EXPORT_FUN(free)(emit_t *emit) {
m_del_obj(emit_t, emit);
}
-STATIC void emit_pre_pop_reg(emit_t *emit, vtype_kind_t *vtype, int reg_dest);
-STATIC void emit_post_push_reg(emit_t *emit, vtype_kind_t vtype, int reg);
STATIC void emit_call_with_imm_arg(emit_t *emit, mp_fun_kind_t fun_kind, mp_int_t arg_val, int arg_reg);
-STATIC void emit_native_load_fast(emit_t *emit, qstr qst, mp_uint_t local_num);
-STATIC void emit_native_store_fast(emit_t *emit, qstr qst, mp_uint_t local_num);
STATIC void emit_native_mov_state_reg(emit_t *emit, int local_num, int reg_src) {
if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) {