added the code_start_loc field to moo_method_data_t and updated emit_byte_instruction()

to get distance of the instruction being emitted
This commit is contained in:
hyunghwan.chung
2019-07-06 09:11:25 +00:00
parent 70eaee601e
commit c334b0af28
2 changed files with 18 additions and 2 deletions

View File

@ -533,6 +533,7 @@ struct moo_method_data_t
/* byte code */
moo_code_t code;
moo_ioloc_t code_start_loc; /* source location of the method body opening brace */
};
typedef struct moo_cunit_class_t moo_cunit_class_t;