compiler: record basic debug info

Save info about method's byte-code sections.
This commit is contained in:
Evgenii Stratonikov 2020-03-31 15:56:10 +03:00
parent b2c767e356
commit 00c40b58aa
4 changed files with 291 additions and 0 deletions

View file

@ -21,6 +21,9 @@ type funcScope struct {
// Program label of the scope
label uint16
// Range of opcodes corresponding to the function.
rng DebugRange
// Local variables
locals map[string]int