Removed incorrect optimization

This commit is contained in:
Eduard Urbach 2024-07-06 15:20:52 +02:00
parent fca944d26c
commit b886637dc3
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 16 additions and 38 deletions

View file

@ -10,14 +10,13 @@ import (
// state is the data structure we embed in each function to preserve compilation state.
type state struct {
err error
definitions map[string]*Definition
variables map[string]*Variable
functions map[string]*Function
finished chan struct{}
assembler asm.Assembler
cpu cpu.CPU
count counter
err error
variables map[string]*Variable
functions map[string]*Function
finished chan struct{}
assembler asm.Assembler
cpu cpu.CPU
count counter
}
// counter stores how often a certain statement appeared so we can generate a unique label from it.