xgo/runtime/frame.go
earncef 5d8457a8f6 Removed double indirection for massive performance gains (#140)
* Removed double indirection for performance gains

* Added missing file

* Cleanup

* Remove pointers patch.

* Cleanup

* Removed redundant parenthesis

* FreeVar changed to ObjectPtr and removed OpSetLocalPtr

* Removed truePtr, falsePtr and undefinedPtr

* Cleanup
2019-03-14 01:07:19 -07:00

13 lines
232 B
Go

package runtime
import (
"github.com/d5/tengo/objects"
)
// Frame represents a function call frame.
type Frame struct {
fn *objects.CompiledFunction
freeVars []*objects.ObjectPtr
ip int
basePointer int
}