vm

package
v0.0.0-...-44b95cc Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var False = &object.Boolean{Value: false}
View Source
var Null = &object.Null{}
View Source
var True = &object.Boolean{Value: 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

func (*Frame) Instructions

func (f *Frame) Instructions() code.Instructions

type VM

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

func New

func New(bytecode *compiler.Bytecode) *VM

func NewWithGlobalsStore

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

func (*VM) LastPoppedStackElem

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

func (*VM) Run

func (vm *VM) Run() error

func (*VM) StackTop

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

Jump to

Keyboard shortcuts

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