Lines Matching refs:mp_obj_t

40 void mp_obj_tuple_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) {  in mp_obj_tuple_print()
68 STATIC mp_obj_t mp_obj_tuple_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, con… in mp_obj_tuple_make_new()
89 mp_obj_t *items = m_new(mp_obj_t, alloc); in mp_obj_tuple_make_new()
91 mp_obj_t iterable = mp_getiter(args[0], NULL); in mp_obj_tuple_make_new()
92 mp_obj_t item; in mp_obj_tuple_make_new()
95 items = m_renew(mp_obj_t, items, alloc, alloc * 2); in mp_obj_tuple_make_new()
101 mp_obj_t tuple = mp_obj_new_tuple(len, items); in mp_obj_tuple_make_new()
102 m_del(mp_obj_t, items, alloc); in mp_obj_tuple_make_new()
110 STATIC mp_obj_t tuple_cmp_helper(mp_uint_t op, mp_obj_t self_in, mp_obj_t another_in) { in tuple_cmp_helper()
126 mp_obj_t mp_obj_tuple_unary_op(mp_unary_op_t op, mp_obj_t self_in) { in mp_obj_tuple_unary_op()
146 mp_obj_t mp_obj_tuple_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs) { in mp_obj_tuple_binary_op()
156 mp_seq_cat(s->items, o->items, o->len, p->items, p->len, mp_obj_t); in mp_obj_tuple_binary_op()
184 mp_obj_t mp_obj_tuple_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value) { in mp_obj_tuple_subscr()
195 mp_seq_copy(res->items, self->items + slice.start, res->len, mp_obj_t); in mp_obj_tuple_subscr()
206 STATIC mp_obj_t tuple_count(mp_obj_t self_in, mp_obj_t value) { in tuple_count()
213 STATIC mp_obj_t tuple_index(size_t n_args, const mp_obj_t *args) { in tuple_index()
242 mp_obj_t mp_obj_new_tuple(size_t n, const mp_obj_t *items) { in mp_obj_new_tuple()
246 mp_obj_tuple_t *o = m_new_obj_var(mp_obj_tuple_t, mp_obj_t, n); in mp_obj_new_tuple()
257 void mp_obj_tuple_get(mp_obj_t self_in, size_t *len, mp_obj_t **items) { in mp_obj_tuple_get()
264 void mp_obj_tuple_del(mp_obj_t self_in) { in mp_obj_tuple_del()
267 m_del_var(mp_obj_tuple_t, mp_obj_t, self->len, self); in mp_obj_tuple_del()
280 STATIC mp_obj_t tuple_it_iternext(mp_obj_t self_in) { in tuple_it_iternext()
283 mp_obj_t o_out = self->tuple->items[self->cur]; in tuple_it_iternext()
291 mp_obj_t mp_obj_tuple_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf) { in mp_obj_tuple_getiter()