Improved performance of the data finalizer
This commit is contained in:
parent
ada7aaa1e2
commit
bfa8f9c7c4
6 changed files with 30 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue