Reduced memory allocations

This commit is contained in:
Eduard Urbach 2024-07-17 15:23:57 +02:00
parent 58eed722c1
commit 814364612f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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,