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

@ -6,13 +6,9 @@ import (
)
// PushNumber pushes a number onto the stack.
func PushNumber(code []byte, number int) []byte {
func PushNumber(code []byte, number int32) []byte {
length := sizeof.Signed(number)
if length >= 8 {
panic("x86 does not support pushing 64-bit numbers")
}
if length >= 2 {
return append(
code,