Improved performance of the data finalizer
This commit is contained in:
parent
ada7aaa1e2
commit
bfa8f9c7c4
6 changed files with 30 additions and 11 deletions
|
@ -121,7 +121,7 @@ func (c *compiler) compile(x asm.Instruction) {
|
|||
case asm.PUSH:
|
||||
switch operands := x.Data.(type) {
|
||||
case *asm.Number:
|
||||
c.code = x86.PushNumber(c.code, operands.Number)
|
||||
c.code = x86.PushNumber(c.code, int32(operands.Number))
|
||||
case *asm.Register:
|
||||
c.code = x86.PushRegister(c.code, operands.Register)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue