vm

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const GlobalSize = 65536
View Source
const MaxFrames = 2048
View Source
const StackSize = 4096

Variables

View Source
var False = object.False
View Source
var True = object.True

Functions

This section is empty.

Types

type Frame

type Frame struct {
	// contains filtered or unexported fields
}

func NewFrame

func NewFrame(cl *object.Closure, basePointer int) *Frame

type VM

type VM struct {
	// contains filtered or unexported fields
}

func GetCurrentVM added in v0.0.2

func GetCurrentVM() *VM

func New

func New(bytecode *compiler.Bytecode) *VM

func NewWithGlobalsStore

func NewWithGlobalsStore(bytecode *compiler.Bytecode, s []object.Object) *VM

func (*VM) ExecClosure added in v0.0.2

func (vm *VM) ExecClosure(closure *object.Closure, args ...object.Object) object.Object

func (*VM) LastPoppedStackElem

func (vm *VM) LastPoppedStackElem() object.Object

func (*VM) Run

func (vm *VM) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL