Improved performance

This commit is contained in:
Eduard Urbach 2024-08-02 11:41:21 +02:00
parent c67056d405
commit 270e7e27a0
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 29 additions and 32 deletions

View file

@ -13,10 +13,11 @@ import (
// NewFunction creates a new function.
func NewFunction(pkg string, name string, file *fs.File, body []token.Token) *Function {
return &Function{
Package: pkg,
Name: name,
File: file,
Body: body,
Package: pkg,
Name: name,
UniqueName: pkg + "." + name,
File: file,
Body: body,
Machine: register.Machine{
Assembler: asm.Assembler{
Instructions: make([]asm.Instruction, 0, 8),