Home
last modified time | relevance | path

Searched refs:scope_t (Results 1 – 7 of 7) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dscope.c43 scope_t *scope_new(scope_kind_t kind, mp_parse_node_t pn, qstr source_file, mp_uint_t emit_options)… in scope_new()
52 scope_t *scope = m_new0(scope_t, 1); in scope_new()
70 void scope_free(scope_t *scope) { in scope_free()
72 m_del(scope_t, scope, 1); in scope_free()
75 id_info_t *scope_find_or_add_id(scope_t *scope, qstr qst, id_info_kind_t kind) { in scope_find_or_add_id()
99 id_info_t *scope_find(scope_t *scope, qstr qst) { in scope_find()
108 id_info_t *scope_find_global(scope_t *scope, qstr qst) { in scope_find_global()
115 STATIC void scope_close_over_in_parents(scope_t *scope, qstr qst) { in scope_close_over_in_parents()
117 for (scope_t *s = scope->parent;; s = s->parent) { in scope_close_over_in_parents()
138 void scope_check_to_close_over(scope_t *scope, id_info_t *id) { in scope_check_to_close_over()
[all …]
A Dscope.h91 } scope_t; typedef
93 scope_t *scope_new(scope_kind_t kind, mp_parse_node_t pn, qstr source_file, mp_uint_t emit_options);
94 void scope_free(scope_t *scope);
95 id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, id_info_kind_t kind);
96 id_info_t *scope_find(scope_t *scope, qstr qstr);
97 id_info_t *scope_find_global(scope_t *scope, qstr qstr);
98 void scope_check_to_close_over(scope_t *scope, id_info_t *id);
A Demit.h106 void (*start_pass)(emit_t *emit, pass_kind_t pass, scope_t *scope);
150 …void (*make_function)(emit_t *emit, scope_t *scope, mp_uint_t n_pos_defaults, mp_uint_t n_kw_defau…
151 …void (*make_closure)(emit_t *emit, scope_t *scope, mp_uint_t n_closed_over, mp_uint_t n_pos_defaul…
164 static inline void mp_emit_common_get_id_for_load(scope_t *scope, qstr qst) { in mp_emit_common_get_id_for_load()
168 void mp_emit_common_get_id_for_modification(scope_t *scope, qstr qst);
169 …op(emit_t *emit, const mp_emit_method_table_id_ops_t *emit_method_table, scope_t *scope, qstr qst);
201 void mp_emit_bc_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope);
248 void mp_emit_bc_make_function(emit_t *emit, scope_t *scope, mp_uint_t n_pos_defaults, mp_uint_t n_k…
249 void mp_emit_bc_make_closure(emit_t *emit, scope_t *scope, mp_uint_t n_closed_over, mp_uint_t n_pos…
A Demitcommon.c33 void mp_emit_common_get_id_for_modification(scope_t *scope, qstr qst) { in mp_emit_common_get_id_for_modification()
42 …op(emit_t *emit, const mp_emit_method_table_id_ops_t *emit_method_table, scope_t *scope, qstr qst)… in mp_emit_common_id_op()
A Dcompile.c179 scope_t *scope_head;
180 scope_t *scope_cur;
249 scope_t *s = comp->scope_head; in scope_new_and_link()
782 scope_t *fscope = (scope_t *)pns->nodes[4]; in compile_funcdef_helper()
804 scope_t *cscope = (scope_t *)pns->nodes[3]; in compile_classdef_helper()
925 scope_t *fscope = (scope_t *)pns0->nodes[4]; in compile_decorated()
1971 scope_t *fscope = (scope_t *)pns0->nodes[4]; in compile_async_stmt()
2133 scope_t *this_scope = (scope_t *)pns->nodes[2]; in compile_lambdef()
2146 scope_t *old_scope = comp->scope_cur; in compile_namedexpr_helper()
2478 scope_t *this_scope = (scope_t *)pns_comp_for->nodes[3]; in compile_comprehension()
[all …]
A Demitbc.c53 scope_t *scope;
311 void mp_emit_bc_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope) { in mp_emit_bc_start_pass()
790 void mp_emit_bc_make_function(emit_t *emit, scope_t *scope, mp_uint_t n_pos_defaults, mp_uint_t n_k… in mp_emit_bc_make_function()
798 void mp_emit_bc_make_closure(emit_t *emit, scope_t *scope, mp_uint_t n_closed_over, mp_uint_t n_pos… in mp_emit_bc_make_closure()
A Demitnative.c247 scope_t *scope;
355 STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope) { in emit_native_start_pass()
2680 STATIC void emit_native_make_function(emit_t *emit, scope_t *scope, mp_uint_t n_pos_defaults, mp_ui… in emit_native_make_function()
2699 STATIC void emit_native_make_closure(emit_t *emit, scope_t *scope, mp_uint_t n_closed_over, mp_uint… in emit_native_make_closure()

Completed in 24 milliseconds