Home
last modified time | relevance | path

Searched refs:pystack_cur (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dpystack.c36 MP_STATE_THREAD(pystack_cur) = start; in mp_pystack_init()
44 if (MP_STATE_THREAD(pystack_cur) + n_bytes > MP_STATE_THREAD(pystack_end)) { in mp_pystack_alloc()
48 void *ptr = MP_STATE_THREAD(pystack_cur); in mp_pystack_alloc()
49 MP_STATE_THREAD(pystack_cur) += n_bytes; in mp_pystack_alloc()
51 *(size_t *)(MP_STATE_THREAD(pystack_cur) - MICROPY_PYSTACK_ALIGN) = n_bytes; in mp_pystack_alloc()
A Dpystack.h45 assert((uint8_t *)ptr <= MP_STATE_THREAD(pystack_cur)); in mp_pystack_free()
47 size_t n_bytes_to_free = MP_STATE_THREAD(pystack_cur) - (uint8_t *)ptr; in mp_pystack_free()
48 size_t n_bytes = *(size_t *)(MP_STATE_THREAD(pystack_cur) - MICROPY_PYSTACK_ALIGN); in mp_pystack_free()
50 n_bytes += *(size_t *)(MP_STATE_THREAD(pystack_cur) - n_bytes - MICROPY_PYSTACK_ALIGN); in mp_pystack_free()
54 (uint)*(size_t *)(MP_STATE_THREAD(pystack_cur) - MICROPY_PYSTACK_ALIGN)); in mp_pystack_free()
58 MP_STATE_THREAD(pystack_cur) = (uint8_t *)ptr; in mp_pystack_free()
67 return MP_STATE_THREAD(pystack_cur) - MP_STATE_THREAD(pystack_start); in mp_pystack_usage()
A Dnlr.h117 #define MP_NLR_SAVE_PYSTACK(nlr_buf) (nlr_buf)->pystack = MP_STATE_THREAD(pystack_cur)
118 #define MP_NLR_RESTORE_PYSTACK(nlr_buf) MP_STATE_THREAD(pystack_cur) = (nlr_buf)->pystack
A Dmpstate.h251 uint8_t *pystack_cur; member
A Dgc.c340 …gc_collect_root(ptrs, (MP_STATE_THREAD(pystack_cur) - MP_STATE_THREAD(pystack_start)) / sizeof(voi… in gc_collect_start()

Completed in 7 milliseconds