compiler: record basic debug info
Save info about method's byte-code sections.
This commit is contained in:
parent
b2c767e356
commit
00c40b58aa
4 changed files with 291 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue