Reduced memory usage
This commit is contained in:
parent
d77660cdb8
commit
9867550c11
5 changed files with 42 additions and 36 deletions
|
@ -64,7 +64,7 @@ func (f *Function) CompileTokens(body token.List) error {
|
|||
|
||||
if config.Verbose {
|
||||
f.debug = append(f.debug, debug{
|
||||
pos: len(f.Assembler.Instructions),
|
||||
position: len(f.Assembler.Instructions),
|
||||
instruction: instruction,
|
||||
})
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ func (f *Function) PrintAsm() {
|
|||
ansi.Dim.Println("╭──────────────────────────────────────╮")
|
||||
|
||||
for i, x := range f.Assembler.Instructions {
|
||||
instruction := f.debugLine(i)
|
||||
instruction := f.instructionAt(i)
|
||||
|
||||
if instruction != nil {
|
||||
ansi.Dim.Println("├──────────────────────────────────────┤")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue