Lines Matching refs:mp_fun_table
58 return mp_fun_table.realloc_(NULL, n, false); in m_malloc_dyn()
62 mp_fun_table.realloc_(ptr, 0, false); in m_free_dyn()
67 return mp_fun_table.realloc_(ptr, new_num_bytes, true); in m_realloc_dyn()
73 #define mp_plat_print (*mp_fun_table.plat_print)
74 #define mp_printf(p, ...) (mp_fun_table.printf_((p), __VA_ARGS__))
75 #define mp_vprintf(p, fmt, args) (mp_fun_table.vprintf_((p), (fmt), (args)))
82 #define mp_type_type (*mp_fun_table.type_type)
83 #define mp_type_str (*mp_fun_table.type_str)
85 #define mp_type_list (*mp_fun_table.type_list)
94 #define mp_stream_read_obj (*mp_fun_table.stream_read_obj)
95 #define mp_stream_readinto_obj (*mp_fun_table.stream_readinto_obj)
96 #define mp_stream_unbuffered_readline_obj (*mp_fun_table.stream_unbuffered_readline_obj)
97 #define mp_stream_write_obj (*mp_fun_table.stream_write_obj)
99 #define mp_const_none ((mp_obj_t)mp_fun_table.const_none)
100 #define mp_const_false ((mp_obj_t)mp_fun_table.const_false)
101 #define mp_const_true ((mp_obj_t)mp_fun_table.const_true)
102 #define mp_const_empty_tuple (mp_fun_table.new_tuple(0, NULL))
104 …p_obj_new_bool(b) ((b) ? (mp_obj_t)mp_fun_table.const_true : (mp_obj_t)mp_fun_tab…
105 #define mp_obj_new_int(i) (mp_fun_table.native_to_obj(i, MP_NATIVE_TYPE_INT))
106 #define mp_obj_new_int_from_uint(i) (mp_fun_table.native_to_obj(i, MP_NATIVE_TYPE_UINT))
107 #define mp_obj_new_str(data, len) (mp_fun_table.obj_new_str((data), (len)))
109 #define mp_obj_new_bytes(data, len) (mp_fun_table.obj_new_bytes((data), (len)))
110 #define mp_obj_new_bytearray_by_ref(n, i) (mp_fun_table.obj_new_bytearray_by_ref((n), (i)))
111 #define mp_obj_new_tuple(n, items) (mp_fun_table.new_tuple((n), (items)))
112 #define mp_obj_new_list(n, items) (mp_fun_table.new_list((n), (items)))
114 #define mp_obj_get_type(o) (mp_fun_table.obj_get_type((o)))
116 #define mp_obj_get_int(o) (mp_fun_table.native_from_obj(o, MP_NATIVE_TYPE_INT))
117 #define mp_obj_get_int_truncated(o) (mp_fun_table.native_from_obj(o, MP_NATIVE_TYPE_UINT))
120 #define mp_get_buffer_raise(o, bufinfo, fl) (mp_fun_table.get_buffer_raise((o), (bufinfo), (fl)))
121 #define mp_get_stream_raise(s, flags) (mp_fun_table.get_stream_raise((s), (flags)))
124 #define mp_obj_subscr(base, index, val) (mp_fun_table.obj_subscr((base), (index), (val)))
126 #define mp_obj_list_append(list, item) (mp_fun_table.list_append((list), (item)))
162 return mp_fun_table.call_function_n_kw(mp_fun_table.load_name(MP_QSTR_len), 1, &o); in mp_obj_len_dyn()
168 #define mp_load_name(qst) (mp_fun_table.load_name((qst)))
169 #define mp_load_global(qst) (mp_fun_table.load_global((qst)))
170 #define mp_load_attr(base, attr) (mp_fun_table.load_attr((base), (attr)))
171 #define mp_load_method(base, attr, dest) (mp_fun_table.load_method((base), (attr), (dest)))
172 #define mp_load_super_method(attr, dest) (mp_fun_table.load_super_method((attr), (dest)))
173 #define mp_store_name(qst, obj) (mp_fun_table.store_name((qst), (obj)))
174 #define mp_store_global(qst, obj) (mp_fun_table.store_global((qst), (obj)))
175 #define mp_store_attr(base, attr, val) (mp_fun_table.store_attr((base), (attr), (val)))
177 #define mp_unary_op(op, obj) (mp_fun_table.unary_op((op), (obj)))
178 #define mp_binary_op(op, lhs, rhs) (mp_fun_table.binary_op((op), (lhs), (rhs)))
181 (mp_fun_table.make_function_from_raw_code((rc), (def_args), (def_kw_args)))
184 (mp_fun_table.call_function_n_kw((fun), (n_args) | ((n_kw) << 8), args))
187 …(mp_fun_table.arg_check_num_sig((n_args), (n_kw), MP_OBJ_FUN_MAKE_SIG((n_args_min), (n_args_max), …
190 mp_obj_t old_globals = mp_fun_table.swap_globals(self->globals); \
198 mp_fun_table.swap_globals(old_globals); \
205 (mp_fun_table.import_name((name), (fromlist), (level)))
207 (mp_fun_table.import_from((module), (name)))
209 (mp_fun_table.import_all((module))
219 #define mp_raise_msg(type, msg) (mp_fun_table.raise_msg((type), (msg)))
231 mp_fun_table.raise(o); in mp_raise_dyn()
244 #define mp_obj_new_float_from_f(f) (mp_fun_table.obj_new_float_from_f((f)))
245 #define mp_obj_new_float_from_d(d) (mp_fun_table.obj_new_float_from_d((d)))
246 #define mp_obj_get_float_to_f(o) (mp_fun_table.obj_get_float_to_f((o)))
247 #define mp_obj_get_float_to_d(o) (mp_fun_table.obj_get_float_to_d((o)))