Improved performance of the data finalizer

This commit is contained in:
Eduard Urbach 2025-03-04 16:54:17 +01:00
parent ada7aaa1e2
commit bfa8f9c7c4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
6 changed files with 30 additions and 11 deletions

View file

@ -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)