Home
last modified time | relevance | path

Searched refs:nlr (Results 1 – 24 of 24) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dnlr.c33 unsigned int nlr_push_tail(nlr_buf_t *nlr) asm ("nlr_push_tail");
36 __attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);
40 unsigned int nlr_push_tail(nlr_buf_t *nlr) { in nlr_push_tail() argument
42 nlr->prev = *top; in nlr_push_tail()
43 MP_NLR_SAVE_PYSTACK(nlr); in nlr_push_tail()
44 *top = nlr; in nlr_push_tail()
A Druntime_utils.c31 nlr_buf_t nlr; in mp_call_function_1_protected() local
32 if (nlr_push(&nlr) == 0) { in mp_call_function_1_protected()
37 mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_call_function_1_protected()
43 nlr_buf_t nlr; in mp_call_function_2_protected() local
44 if (nlr_push(&nlr) == 0) { in mp_call_function_2_protected()
49 mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_call_function_2_protected()
A Dnlrx86.c37 unsigned int nlr_push_tail(nlr_buf_t *nlr) asm ("nlr_push_tail");
39 __attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);
58 unsigned int nlr_push(nlr_buf_t *nlr) { in nlr_push() argument
59 (void)nlr; in nlr_push()
A Dnlrpowerpc.c35 unsigned int nlr_push(nlr_buf_t *nlr) { in nlr_push() argument
72 : "r" (&nlr->regs), "r" (nlr) in nlr_push()
A Dobjgetitemiter.c40 nlr_buf_t nlr; in it_iternext() local
41 if (nlr_push(&nlr) == 0) { in it_iternext()
49 mp_obj_type_t *t = (mp_obj_type_t *)((mp_obj_base_t *)nlr.ret_val)->type; in it_iternext()
54 nlr_jump(nlr.ret_val); in it_iternext()
A Dnlrx64.c36 __attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);
38 unsigned int nlr_push(nlr_buf_t *nlr) { in nlr_push() argument
39 (void)nlr; in nlr_push()
A Dbuiltinevex.c61 nlr_buf_t nlr; in code_execute() local
62 if (nlr_push(&nlr) == 0) { in code_execute()
72 nlr_jump(nlr.ret_val); in code_execute()
A Dnlrxtensa.c39 unsigned int nlr_push(nlr_buf_t *nlr) { in nlr_push() argument
A Dvm.c237 …#define RAISE(o) do { nlr_pop(); nlr.ret_val = MP_OBJ_TO_PTR(o); goto exception_handler; } while (… in mp_execute_bytecode()
269 nlr_buf_t nlr; in mp_execute_bytecode() local
271 if (nlr_push(&nlr) == 0) { in mp_execute_bytecode()
1421 MP_STATE_VM(cur_exception) = nlr.ret_val; in mp_execute_bytecode()
1442 *code_state->sp = mp_obj_exception_get_value(MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_execute_bytecode()
1451 …if (mp_obj_is_subclass_fast(MP_OBJ_FROM_PTR(((mp_obj_base_t*)nlr.ret_val)->type), MP_OBJ_FROM_PTR(… in mp_execute_bytecode()
1463 if (nlr.ret_val != &mp_const_GeneratorExit_obj in mp_execute_bytecode()
1486 …mp_obj_exception_add_traceback(MP_OBJ_FROM_PTR(nlr.ret_val), source_file, source_line, block_name); in mp_execute_bytecode()
1507 exc_sp->prev_exc = nlr.ret_val; in mp_execute_bytecode()
1509 PUSH(MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_execute_bytecode()
[all …]
A Dnlrthumb.c39 __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) { in nlr_push() argument
A Dmodthread.c194 nlr_buf_t nlr; in thread_entry() local
195 if (nlr_push(&nlr) == 0) { in thread_entry()
201 mp_obj_base_t *exc = (mp_obj_base_t *)nlr.ret_val; in thread_entry()
A Druntime.c1142 nlr_buf_t nlr; in mp_load_method_protected() local
1143 if (nlr_push(&nlr) == 0) { in mp_load_method_protected()
1148 && !mp_obj_is_subclass_fast(MP_OBJ_FROM_PTR(((mp_obj_base_t *)nlr.ret_val)->type), in mp_load_method_protected()
1151 nlr_raise(MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_load_method_protected()
1260 nlr_buf_t nlr; in mp_iternext() local
1261 if (nlr_push(&nlr) == 0) { in mp_iternext()
1267 … return mp_make_stop_iteration(mp_obj_exception_get_value(MP_OBJ_FROM_PTR(nlr.ret_val))); in mp_iternext()
1269 nlr_jump(nlr.ret_val); in mp_iternext()
1483 nlr_buf_t nlr; in mp_parse_compile_execute() local
1484 if (nlr_push(&nlr) == 0) { in mp_parse_compile_execute()
[all …]
A Dbuiltinimport.c164 nlr_buf_t nlr; in do_execute_raw_code() local
165 if (nlr_push(&nlr) == 0) { in do_execute_raw_code()
177 nlr_jump(nlr.ret_val); in do_execute_raw_code()
A Dpy.cmake55 ${MICROPY_PY_DIR}/nlr.c
/AliOS-Things-master/components/py_engine/engine/extmod/
A Duos_dupterm.c47 nlr_buf_t nlr; in mp_uos_deactivate() local
48 if (nlr_push(&nlr) == 0) { in mp_uos_deactivate()
74 nlr_buf_t nlr; in mp_uos_dupterm_poll() local
75 if (nlr_push(&nlr) == 0) { in mp_uos_dupterm_poll()
115 nlr_buf_t nlr; in mp_uos_dupterm_rx_chr() local
116 if (nlr_push(&nlr) == 0) { in mp_uos_dupterm_rx_chr()
142 …activate(idx, "dupterm: Exception in read() method, deactivating: ", MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_uos_dupterm_rx_chr()
165 nlr_buf_t nlr; in mp_uos_dupterm_tx_strn() local
166 if (nlr_push(&nlr) == 0) { in mp_uos_dupterm_tx_strn()
170 …ctivate(idx, "dupterm: Exception in write() method, deactivating: ", MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_uos_dupterm_tx_strn()
A Dvfs.c141 nlr_buf_t nlr; in mp_vfs_import_stat() local
142 if (nlr_push(&nlr) == 0) { in mp_vfs_import_stat()
161 nlr_buf_t nlr; in mp_vfs_autodetect() local
162 if (nlr_push(&nlr) == 0) { in mp_vfs_autodetect()
530 nlr_buf_t nlr; in mp_vfs_mount_and_chdir_protected() local
532 if (nlr_push(&nlr) == 0) { in mp_vfs_mount_and_chdir_protected()
539 mp_obj_base_t *exc = nlr.ret_val; in mp_vfs_mount_and_chdir_protected()
/AliOS-Things-master/components/py_engine/engine/shared/upytesthelper/
A Dupytesthelper.c99 nlr_buf_t nlr; in upytest_execute_test() local
100 if (nlr_push(&nlr) == 0) { in upytest_execute_test()
108 mp_obj_t exc = (mp_obj_t)nlr.ret_val; in upytest_execute_test()
/AliOS-Things-master/components/py_engine/engine/shared/runtime/
A Dmpirq.c76 nlr_buf_t nlr; in mp_irq_handler() local
77 if (nlr_push(&nlr) == 0) { in mp_irq_handler()
85 mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(nlr.ret_val)); in mp_irq_handler()
A Dpyexec.c79 nlr_buf_t nlr; in parse_compile_execute() local
80 nlr.ret_val = NULL; in parse_compile_execute()
81 if (nlr_push(&nlr) == 0) { in parse_compile_execute()
139 …if (mp_obj_is_subclass_fast(MP_OBJ_FROM_PTR(((mp_obj_base_t *)nlr.ret_val)->type), MP_OBJ_FROM_PTR… in parse_compile_execute()
143 mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(nlr.ret_val)); in parse_compile_execute()
175 MICROPY_BOARD_AFTER_PYTHON_EXEC(input_kind, exec_flags, nlr.ret_val, &ret); in parse_compile_execute()
/AliOS-Things-master/components/py_engine/engine/mpy-cross/
A Dmain.c59 nlr_buf_t nlr; in compile_and_save() local
60 if (nlr_push(&nlr) == 0) { in compile_and_save()
93 mp_obj_print_exception(&mp_stderr_print, (mp_obj_t)nlr.ret_val); in compile_and_save()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmain.c217 nlr_buf_t nlr; in do_str() local
218 if (nlr_push(&nlr) == 0) { in do_str()
227 mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val); in do_str()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmain.c217 nlr_buf_t nlr; in do_str() local
218 if (nlr_push(&nlr) == 0) { in do_str()
227 mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val); in do_str()
/AliOS-Things-master/components/py_engine/adapter/
A Dmain.c385 nlr_buf_t nlr; in do_str() local
386 if (nlr_push(&nlr) == 0) { in do_str()
395 mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val); in do_str()
/AliOS-Things-master/components/py_engine/
A Daos.mk163 engine/py/modmath.c engine/py/nlr.c engine/py/obj.c \

Completed in 27 milliseconds