Lines Matching refs:stack_adj

186 STATIC void emit_write_bytecode_byte(emit_t *emit, int stack_adj, byte b1) {  in emit_write_bytecode_byte()  argument
187 mp_emit_bc_adjust_stack_size(emit, stack_adj); in emit_write_bytecode_byte()
193 STATIC void emit_write_bytecode_byte_int(emit_t *emit, int stack_adj, byte b1, mp_int_t num) { in emit_write_bytecode_byte_int() argument
194 emit_write_bytecode_byte(emit, stack_adj, b1); in emit_write_bytecode_byte_int()
219 STATIC void emit_write_bytecode_byte_uint(emit_t *emit, int stack_adj, byte b, mp_uint_t val) { in emit_write_bytecode_byte_uint() argument
220 emit_write_bytecode_byte(emit, stack_adj, b); in emit_write_bytecode_byte_uint()
225 STATIC void emit_write_bytecode_byte_const(emit_t *emit, int stack_adj, byte b, mp_uint_t n, mp_uin… in emit_write_bytecode_byte_const() argument
229 emit_write_bytecode_byte_uint(emit, stack_adj, b, n); in emit_write_bytecode_byte_const()
233 STATIC void emit_write_bytecode_byte_qstr(emit_t *emit, int stack_adj, byte b, qstr qst) { in emit_write_bytecode_byte_qstr() argument
236 mp_emit_bc_adjust_stack_size(emit, stack_adj); in emit_write_bytecode_byte_qstr()
242 emit_write_bytecode_byte_uint(emit, stack_adj, b, qst); in emit_write_bytecode_byte_qstr()
246 STATIC void emit_write_bytecode_byte_obj(emit_t *emit, int stack_adj, byte b, mp_obj_t obj) { in emit_write_bytecode_byte_obj() argument
248 emit_write_bytecode_byte_const(emit, stack_adj, b, in emit_write_bytecode_byte_obj()
253 emit_write_bytecode_byte(emit, stack_adj, b); in emit_write_bytecode_byte_obj()
262 STATIC void emit_write_bytecode_byte_raw_code(emit_t *emit, int stack_adj, byte b, mp_raw_code_t *r… in emit_write_bytecode_byte_raw_code() argument
264 emit_write_bytecode_byte_const(emit, stack_adj, b, in emit_write_bytecode_byte_raw_code()
269 emit_write_bytecode_byte(emit, stack_adj, b); in emit_write_bytecode_byte_raw_code()
282 STATIC void emit_write_bytecode_byte_unsigned_label(emit_t *emit, int stack_adj, byte b1, mp_uint_t… in emit_write_bytecode_byte_unsigned_label() argument
283 mp_emit_bc_adjust_stack_size(emit, stack_adj); in emit_write_bytecode_byte_unsigned_label()
297 STATIC void emit_write_bytecode_byte_signed_label(emit_t *emit, int stack_adj, byte b1, mp_uint_t l… in emit_write_bytecode_byte_signed_label() argument
298 mp_emit_bc_adjust_stack_size(emit, stack_adj); in emit_write_bytecode_byte_signed_label()
507 int stack_adj = kind == MP_EMIT_IMPORT_FROM ? 1 : -1; in mp_emit_bc_import() local
509 emit_write_bytecode_byte(emit, stack_adj, MP_BC_IMPORT_STAR); in mp_emit_bc_import()
511 emit_write_bytecode_byte_qstr(emit, stack_adj, MP_BC_IMPORT_NAME + kind, qst); in mp_emit_bc_import()
569 int stack_adj = 1 - 2 * is_super; in mp_emit_bc_load_method() local
570 …emit_write_bytecode_byte_qstr(emit, stack_adj, is_super ? MP_BC_LOAD_SUPER_METHOD : MP_BC_LOAD_MET… in mp_emit_bc_load_method()
697 int stack_adj = kind == MP_EMIT_SETUP_BLOCK_WITH ? 2 : 0; in mp_emit_bc_setup_block() local
698 emit_write_bytecode_byte_unsigned_label(emit, stack_adj, MP_BC_SETUP_WITH + kind, label); in mp_emit_bc_setup_block()
715 int stack_adj = use_stack ? MP_OBJ_ITER_BUF_NSLOTS - 1 : 0; in mp_emit_bc_get_iter() local
716 emit_write_bytecode_byte(emit, stack_adj, use_stack ? MP_BC_GET_ITER_STACK : MP_BC_GET_ITER); in mp_emit_bc_get_iter()
757 int stack_adj = kind == MP_EMIT_BUILD_MAP ? 1 : 1 - n_args; in mp_emit_bc_build() local
758 emit_write_bytecode_byte_uint(emit, stack_adj, MP_BC_BUILD_TUPLE + kind, n_args); in mp_emit_bc_build()
800 int stack_adj = -n_closed_over + 1; in mp_emit_bc_make_closure() local
801 emit_write_bytecode_byte_raw_code(emit, stack_adj, MP_BC_MAKE_CLOSURE, scope->raw_code); in mp_emit_bc_make_closure()
805 int stack_adj = -2 - (mp_int_t)n_closed_over + 1; in mp_emit_bc_make_closure() local
806 … emit_write_bytecode_byte_raw_code(emit, stack_adj, MP_BC_MAKE_CLOSURE_DEFARGS, scope->raw_code); in mp_emit_bc_make_closure()
811 STATIC void emit_bc_call_function_method_helper(emit_t *emit, int stack_adj, mp_uint_t bytecode_bas… in emit_bc_call_function_method_helper() argument
813 stack_adj -= (int)n_positional + 2 * (int)n_keyword + 2; in emit_bc_call_function_method_helper()
814 …emit_write_bytecode_byte_uint(emit, stack_adj, bytecode_base + 1, (n_keyword << 8) | n_positional)… in emit_bc_call_function_method_helper()
816 stack_adj -= (int)n_positional + 2 * (int)n_keyword; in emit_bc_call_function_method_helper()
817 …emit_write_bytecode_byte_uint(emit, stack_adj, bytecode_base, (n_keyword << 8) | n_positional); //… in emit_bc_call_function_method_helper()