Lines Matching refs:bytecode_offset
63 size_t bytecode_offset; member
171 emit->bytecode_offset += num_bytes_to_write; in emit_get_cur_to_write_bytecode()
174 assert(emit->bytecode_offset + num_bytes_to_write <= emit->bytecode_size); in emit_get_cur_to_write_bytecode()
175 byte *c = emit->code_base + emit->code_info_size + emit->bytecode_offset; in emit_get_cur_to_write_bytecode()
176 emit->bytecode_offset += num_bytes_to_write; in emit_get_cur_to_write_bytecode()
254 emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(mp_obj_t)); in emit_write_bytecode_byte_obj()
270 emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(void *)); in emit_write_bytecode_byte_raw_code()
284 mp_uint_t bytecode_offset; in emit_write_bytecode_byte_unsigned_label() local
286 bytecode_offset = 0; in emit_write_bytecode_byte_unsigned_label()
288 bytecode_offset = emit->label_offsets[label] - emit->bytecode_offset - 3; in emit_write_bytecode_byte_unsigned_label()
292 c[1] = bytecode_offset; in emit_write_bytecode_byte_unsigned_label()
293 c[2] = bytecode_offset >> 8; in emit_write_bytecode_byte_unsigned_label()
299 int bytecode_offset; in emit_write_bytecode_byte_signed_label() local
301 bytecode_offset = 0; in emit_write_bytecode_byte_signed_label()
303 bytecode_offset = emit->label_offsets[label] - emit->bytecode_offset - 3 + 0x8000; in emit_write_bytecode_byte_signed_label()
307 c[1] = bytecode_offset; in emit_write_bytecode_byte_signed_label()
308 c[2] = bytecode_offset >> 8; in emit_write_bytecode_byte_signed_label()
324 emit->bytecode_offset = 0; in mp_emit_bc_start_pass()
428 emit->bytecode_size = emit->bytecode_offset; in mp_emit_bc_end_pass()
476 mp_uint_t bytes_to_skip = emit->bytecode_offset - emit->last_source_line_offset; in mp_emit_bc_set_source_line()
479 emit->last_source_line_offset = emit->bytecode_offset; in mp_emit_bc_set_source_line()
497 emit->label_offsets[l] = emit->bytecode_offset; in mp_emit_bc_label_assign()
500 assert(emit->label_offsets[l] == emit->bytecode_offset); in mp_emit_bc_label_assign()