/AliOS-Things-master/components/py_engine/engine/py/ |
A D | emitglue.c | 70 mp_uint_t scope_flags) { in mp_emit_glue_assign_bytecode() argument 73 rc->scope_flags = scope_flags; in mp_emit_glue_assign_bytecode() 91 …EBUG_printf("assign byte code: code=%p len=" UINT_FMT " flags=%x\n", code, len, (uint)scope_flags); in mp_emit_glue_assign_bytecode() 107 mp_uint_t n_pos_args, mp_uint_t scope_flags, mp_uint_t type_sig) { in mp_emit_glue_assign_native() argument 137 rc->scope_flags = scope_flags; in mp_emit_glue_assign_native() 153 …FMT " n_pos_args=" UINT_FMT " flags=%x\n", kind, fun_data, fun_len, n_pos_args, (uint)scope_flags); in mp_emit_glue_assign_native() 191 if ((rc->scope_flags & MP_SCOPE_FLAG_GENERATOR) != 0) { in mp_make_function_from_raw_code() 206 if ((rc->scope_flags & MP_SCOPE_FLAG_GENERATOR) != 0) { in mp_make_function_from_raw_code()
|
A D | bc.c | 135 … size_t n_state_unused, n_exc_stack_unused, scope_flags, n_pos_args, n_kwonly_args, n_def_pos_args; in mp_setup_code_state() local 136 …MP_BC_PRELUDE_SIG_DECODE_INTO(code_state->ip, n_state_unused, n_exc_stack_unused, scope_flags, n_p… in mp_setup_code_state() 155 if ((scope_flags & MP_SCOPE_FLAG_VARARGS) == 0) { in mp_setup_code_state() 162 if ((scope_flags & MP_SCOPE_FLAG_VARARGS) != 0) { in mp_setup_code_state() 168 if (n_kw == 0 && (scope_flags & MP_SCOPE_FLAG_DEFKWARGS) == 0) { in mp_setup_code_state() 187 if (n_kw != 0 || (scope_flags & MP_SCOPE_FLAG_DEFKWARGS) != 0) { in mp_setup_code_state() 192 if ((scope_flags & MP_SCOPE_FLAG_VARKEYWORDS) != 0) { in mp_setup_code_state() 214 if ((scope_flags & MP_SCOPE_FLAG_VARKEYWORDS) == 0) { in mp_setup_code_state() 254 if ((scope_flags & MP_SCOPE_FLAG_DEFKWARGS) != 0) { in mp_setup_code_state() 271 if ((scope_flags & MP_SCOPE_FLAG_VARKEYWORDS) != 0) { in mp_setup_code_state()
|
A D | emitglue.h | 59 mp_uint_t scope_flags : 7; member 96 mp_uint_t scope_flags); 105 mp_uint_t n_pos_args, mp_uint_t scope_flags, mp_uint_t type_sig);
|
A D | bc.h | 77 size_t F = scope->scope_flags & MP_SCOPE_FLAG_ALL_SIG; \ 130 size_t n_state, n_exc_stack, scope_flags, n_pos_args, n_kwonly_args, n_def_pos_args; \ 131 …MP_BC_PRELUDE_SIG_DECODE_INTO(ip, n_state, n_exc_stack, scope_flags, n_pos_args, n_kwonly_args, n_… 132 (void)n_state; (void)n_exc_stack; (void)scope_flags; \ 181 uint scope_flags; member
|
A D | persistentcode.c | 120 uint scope_flags; member 133 prelude->scope_flags = scope_flags; in extract_prelude() 420 prelude.scope_flags = read_uint(reader, NULL); in load_raw_code() 447 if (prelude.scope_flags & MP_SCOPE_FLAG_VIPERRODATA) { in load_raw_code() 450 if (prelude.scope_flags & MP_SCOPE_FLAG_VIPERBSS) { in load_raw_code() 471 if (prelude.scope_flags & MP_SCOPE_FLAG_VIPERRODATA) { in load_raw_code() 479 if (prelude.scope_flags & MP_SCOPE_FLAG_VIPERBSS) { in load_raw_code() 508 prelude.scope_flags); in load_raw_code() 518 if (prelude.scope_flags & MP_SCOPE_FLAG_VIPERRELOC) { in load_raw_code() 543 prelude.n_pos_args, prelude.scope_flags, type_sig); in load_raw_code() [all …]
|
A D | scope.h | 80 uint16_t scope_flags; // see runtime0.h member
|
A D | emitnative.c | 287 if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in emit_native_mov_state_reg() 295 if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in emit_native_mov_reg_state() 303 if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in emit_native_mov_reg_state_addr() 381 if (scope->scope_flags & MP_SCOPE_FLAG_VARARGS) { in emit_native_start_pass() 384 if (scope->scope_flags & MP_SCOPE_FLAG_VARKEYWORDS) { in emit_native_start_pass() 443 } else if (scope->scope_flags & MP_SCOPE_FLAG_HASCONSTS) { in emit_native_start_pass() 512 if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in emit_native_start_pass() 1270 if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in emit_native_global_exc_entry() 1427 emit->scope->scope_flags |= MP_SCOPE_FLAG_HASCONSTS; in emit_native_load_const_obj() 2784 if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in emit_native_return_value() [all …]
|
A D | objgenerator.c | 102 size_t n_state, n_exc_stack_unused, scope_flags, n_pos_args, n_kwonly_args, n_def_args; in native_gen_wrap_call() local 103 …MP_BC_PRELUDE_SIG_DECODE_INTO(ip, n_state, n_exc_stack_unused, scope_flags, n_pos_args, n_kwonly_a… in native_gen_wrap_call()
|
A D | objfun.c | 201 size_t n_exc_stack, scope_flags, n_pos_args, n_kwonly_args, n_def_args; \ 202 …MP_BC_PRELUDE_SIG_DECODE_INTO(ip, n_state_out_var, n_exc_stack, scope_flags, n_pos_args, n_kwonly_… 203 (void)scope_flags; (void)n_pos_args; (void)n_kwonly_args; (void)n_def_args; \
|
A D | compile.c | 610 this_scope->scope_flags |= MP_SCOPE_FLAG_DEFKWARGS; in close_over_variables_etc() 926 fscope->scope_flags |= MP_SCOPE_FLAG_GENERATOR; in compile_decorated() 1972 fscope->scope_flags |= MP_SCOPE_FLAG_GENERATOR; in compile_async_stmt() 1975 int scope_flags = comp->scope_cur->scope_flags; in compile_async_stmt() local 1976 if (!(scope_flags & MP_SCOPE_FLAG_GENERATOR)) { in compile_async_stmt() 2936 comp->scope_cur->scope_flags |= MP_SCOPE_FLAG_VARARGS; in compile_scope_func_lambda_param() 2942 comp->scope_cur->scope_flags |= MP_SCOPE_FLAG_VARARGS; in compile_scope_func_lambda_param() 2951 comp->scope_cur->scope_flags |= MP_SCOPE_FLAG_VARKEYWORDS; in compile_scope_func_lambda_param() 3136 if (scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) { in compile_scope() 3406 if (scope->scope_flags & MP_SCOPE_FLAG_VARARGS) { in scope_compute_things() [all …]
|
A D | dynruntime.h | 193 rc.scope_flags = 0; \
|
A D | profile.c | 46 prelude->scope_flags = scope_flags; in mp_prof_extract_prelude()
|
A D | emitbc.c | 449 emit->scope->scope_flags); in mp_emit_bc_end_pass() 844 emit->scope->scope_flags |= MP_SCOPE_FLAG_GENERATOR; in mp_emit_bc_yield()
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | _frozen_mpy.c | 171 .scope_flags = 0x20,
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | _frozen_mpy.c | 98 .scope_flags = 0x20,
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | _frozen_mpy.c | 98 .scope_flags = 0x20,
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | mpy-tool.py | 207 scope_flags, 219 return ip, ip2, (n_state, n_exc_stack, scope_flags, n_pos_args, n_kwonly_args, n_def_pos_args) 692 scope_flags, 702 return n_state, n_exc_stack, scope_flags, n_pos_args, n_kwonly_args, n_def_pos_args 756 scope_flags = read_uint(f) 761 prelude = (None, None, scope_flags, n_pos_args, 0)
|
A D | mpy_ld.py | 937 scope_flags = MP_SCOPE_FLAG_VIPERRELOC 939 scope_flags |= MP_SCOPE_FLAG_VIPERRODATA 941 scope_flags |= MP_SCOPE_FLAG_VIPERBSS 942 out.write_uint(scope_flags)
|