more compiler code to store source locations of byte codes emitted

This commit is contained in:
2021-01-28 08:17:50 +00:00
parent 162d4431ca
commit c93ddd5042
2 changed files with 51 additions and 38 deletions

View File

@ -320,9 +320,17 @@ struct hcl_cframe2_t
union
{
/* COP_EMIT_CALL */
struct
{
hcl_ooi_t index;
} call;
/* COP_EMIT_SET */
struct
{
int var_type;
hcl_ooi_t index;
} set;
struct
@ -335,6 +343,7 @@ struct hcl_cframe2_t
struct
{
hcl_ooi_t body_pos;
hcl_ooi_t jump_inst_pos;
hcl_ioloc_t start_loc;
} post_if;