Searched refs:state_size (Results 1 – 2 of 2) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | objfun.c | 222 size_t n_state, state_size; in mp_obj_fun_bc_prepare_codestate() local 223 DECODE_CODESTATE_SIZE(self->bytecode, n_state, state_size); in mp_obj_fun_bc_prepare_codestate() 260 size_t n_state, state_size; in fun_bc_call() local 261 DECODE_CODESTATE_SIZE(self->bytecode, n_state, state_size); in fun_bc_call() 268 if (state_size > VM_MAX_STATE_ON_STACK) { in fun_bc_call() 272 memset(code_state->state, 0, state_size); in fun_bc_call() 277 code_state = alloca(sizeof(mp_code_state_t) + state_size); in fun_bc_call() 279 memset(code_state->state, 0, state_size); in fun_bc_call() 281 state_size = 0; // indicate that we allocated using alloca in fun_bc_call() 338 if (state_size != 0) { in fun_bc_call() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | libregexp.c | 2037 size_t state_size; member 2059 new_stack = lre_realloc(s->opaque, s->state_stack, new_size * s->state_size); in push_state() 2065 rs = (REExecState *)(s->state_stack + s->state_stack_len * s->state_size); in push_state() 2115 (s->state_stack_len - 1) * s->state_size); in lre_exec_backtrack() 2513 s->state_size = sizeof(REExecState) + in lre_exec()
|
Completed in 10 milliseconds