Searched refs:code_state (Results 1 – 8 of 8) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | bc.c | 120 code_state->ip = self->bytecode + (size_t)code_state->ip; in mp_setup_code_state() 123 code_state->prev = NULL; in mp_setup_code_state() 127 code_state->prev_state = NULL; in mp_setup_code_state() 128 code_state->frame = NULL; in mp_setup_code_state() 132 size_t n_state = code_state->n_state; in mp_setup_code_state() 140 code_state->sp = &code_state->state[0] - 1; in mp_setup_code_state() 141 code_state->exc_sp_idx = 0; in mp_setup_code_state() 144 memset(code_state->state, 0, n_state * sizeof(*code_state->state)); in mp_setup_code_state() 277 const byte *ip = code_state->ip; in mp_setup_code_state() 296 code_state->ip = ip; in mp_setup_code_state() [all …]
|
A D | vm.c | 137 assert(code_state != code_state->prev_state); \ 139 assert(code_state != code_state->prev_state); \ 143 assert(code_state != code_state->prev_state); \ 145 assert(code_state != code_state->prev_state); \ 152 assert(code_state != code_state->prev_state); \ 154 assert(code_state != code_state->prev_state); \ 160 code_state->frame = MP_OBJ_TO_PTR(mp_prof_frame_update(code_state)); \ 165 assert(code_state != code_state->prev_state); \ 170 if (!mp_prof_is_executing && code_state->frame && code_state->frame->callback) { \ 1426 code_state->ip -= 1; in mp_execute_bytecode() [all …]
|
A D | objgenerator.c | 50 mp_code_state_t code_state; member 67 o->code_state.fun_bc = self_fun; in gen_wrap_call() 68 o->code_state.ip = 0; in gen_wrap_call() 69 o->code_state.n_state = n_state; in gen_wrap_call() 113 o->code_state.fun_bc = self_fun; in native_gen_wrap_call() 115 o->code_state.n_state = n_state; in native_gen_wrap_call() 154 if (self->code_state.ip == 0) { in mp_obj_gen_resume() 174 if (self->code_state.sp == self->code_state.state - 1) { in mp_obj_gen_resume() 179 *self->code_state.sp = send_value; in mp_obj_gen_resume() 215 self->code_state.ip = 0; in mp_obj_gen_resume() [all …]
|
A D | objfun.c | 211 code_state->fun_bc = _fun_bc; \ 212 code_state->ip = 0; \ 213 code_state->n_state = _n_state; \ 225 mp_code_state_t *code_state; in mp_obj_fun_bc_prepare_codestate() local 235 if (!code_state) { in mp_obj_fun_bc_prepare_codestate() 245 return code_state; in mp_obj_fun_bc_prepare_codestate() 271 if (code_state != NULL) { in fun_bc_call() 276 if (code_state == NULL) { in fun_bc_call() 294 if (code_state->sp < code_state->state) { in fun_bc_call() 326 result = *code_state->sp; in fun_bc_call() [all …]
|
A D | profile.h | 45 const mp_code_state_t *code_state; member 57 mp_obj_t mp_obj_new_frame(const mp_code_state_t *code_state); 62 mp_obj_t mp_prof_frame_enter(mp_code_state_t *code_state); 63 mp_obj_t mp_prof_frame_update(const mp_code_state_t *code_state); 66 mp_obj_t mp_prof_instr_tick(mp_code_state_t *code_state, bool is_exception); 72 void mp_prof_print_instr(const byte *ip, mp_code_state_t *code_state); 73 #define MP_PROF_INSTR_DEBUG_PRINT(current_ip) mp_prof_print_instr((current_ip), code_state)
|
A D | profile.c | 224 if (o->code_state->prev_state) { in frame_attr() 268 o->code_state = code_state; in mp_obj_new_frame() 324 if (code_state->prev_state && code_state->frame == NULL) { in mp_prof_frame_enter() 334 code_state->frame = frame; in mp_prof_frame_enter() 342 args->frame = code_state->frame; in mp_prof_frame_enter() 358 mp_obj_frame_t *frame = code_state->frame; in mp_prof_frame_update() 369 assert(o->code_state == code_state); in mp_prof_frame_update() 380 assert(code_state->frame); in mp_prof_instr_tick() 384 assert(code_state != code_state->prev_state); in mp_prof_instr_tick() 390 args->frame = code_state->frame; in mp_prof_instr_tick() [all …]
|
A D | bc.h | 229 mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state, volatile mp_obj_t inject_exc); 231 void mp_setup_code_state(mp_code_state_t *code_state, size_t n_args, size_t n_kw, const mp_obj_t *a…
|
A D | nativeglue.h | 134 …void (*setup_code_state)(mp_code_state_t *code_state, size_t n_args, size_t n_kw, const mp_obj_t *…
|
Completed in 16 milliseconds