Improved performance of the data finalizer
This commit is contained in:
parent
ada7aaa1e2
commit
bfa8f9c7c4
6 changed files with 30 additions and 11 deletions
|
@ -1,7 +1,6 @@
|
|||
package core
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"slices"
|
||||
|
||||
"git.urbach.dev/cli/q/src/asm"
|
||||
|
@ -37,7 +36,7 @@ func (f *Function) CallExtern(fn *Function, parameters []*expression.Expression)
|
|||
f.Number(asm.PUSH, 0)
|
||||
f.Number(asm.PUSH, 0)
|
||||
f.RegisterNumber(asm.SUB, x86.RSP, 32)
|
||||
f.DLLCall(fmt.Sprintf("%s.%s", fn.Package, fn.Name))
|
||||
f.DLLCall(fn.UniqueName)
|
||||
f.RegisterRegister(asm.MOVE, x86.RSP, x86.RBP)
|
||||
f.Register(asm.POP, x86.RBP)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue