Improved performance
This commit is contained in:
parent
c67056d405
commit
270e7e27a0
11 changed files with 29 additions and 32 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue