remove callable args alloc (#259)
This commit is contained in:
parent
b555842004
commit
b75bda7da7
1 changed files with 1 additions and 3 deletions
4
vm.go
4
vm.go
|
@ -604,9 +604,7 @@ func (v *VM) run() {
|
|||
v.framesIndex++
|
||||
v.sp = v.sp - numArgs + callee.NumLocals
|
||||
} else {
|
||||
var args []Object
|
||||
args = append(args, v.stack[v.sp-numArgs:v.sp]...)
|
||||
ret, e := value.Call(args...)
|
||||
ret, e := value.Call(v.stack[v.sp-numArgs : v.sp]...)
|
||||
v.sp -= numArgs + 1
|
||||
|
||||
// runtime error
|
||||
|
|
Loading…
Reference in a new issue