Reduced memory allocations

This commit is contained in:
2024-07-17 15:23:57 +02:00
parent f4e4e49fce
commit 8b2cdfa841
3 changed files with 11 additions and 3 deletions

View File

@ -27,7 +27,6 @@ func NewFunction(name string, file *fs.File, body token.List) *Function {
state: state{
assembler: asm.Assembler{
Instructions: make([]asm.Instruction, 0, 32),
Data: map[string][]byte{},
},
cpu: cpu.CPU{
All: x64.AllRegisters,