instruction

package
v0.0.0-...-84a1f60 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilArbitrary interface{} = nil
View Source
var NilBool interface{} = false
View Source
var NilBytes interface{} = make([]byte, 0)
View Source
var NilFloat32 interface{} = float32(0)
View Source
var NilFloat64 interface{} = float64(0)
View Source
var NilInt32 interface{} = int32(0)
View Source
var NilInt64 interface{} = int64(0)
View Source
var NilSlice interface{} = make([]interface{}, 0)
View Source
var NilString interface{} = ""
View Source
var NilUInt32 interface{} = uint32(0)
View Source
var NilUInt64 interface{} = uint64(0)

Functions

func And

func And(rhsLen int) common.Instruction

func ArrIndex

func ArrIndex() common.Instruction

func Assign

func Assign(op string, lhs *common.DataType) common.Instruction

func BinaryOp

func BinaryOp(op string, lhs *common.DataType, rhs *common.DataType) common.Instruction

func ChanRecv

func ChanRecv(nonBlock bool) common.Instruction

func ChanSend

func ChanSend(nonBlock bool) common.Instruction

func ConnectInstructions

func ConnectInstructions(instructions []common.Instruction) common.Instruction

func Construct

func Construct(constructor common.Constructor, numParam int) common.Instruction

func DelMap32Field

func DelMap32Field(m interface{}, k interface{})

func DelMap64Field

func DelMap64Field(m interface{}, k interface{})

func DelMapBoolField

func DelMapBoolField(m interface{}, k interface{})

func DelMapIFaceField

func DelMapIFaceField(m interface{}, k interface{})

func DelMapStrField

func DelMapStrField(m interface{}, k interface{})

func DeleteMapKey

func DeleteMapKey(mapDelFunc func(m interface{}, k interface{})) common.Instruction

func DeleteMessageField

func DeleteMessageField() common.Instruction

func EnumString

func EnumString(rEnum map[int32]string) common.Instruction

func FetchSymbol

func FetchSymbol(symbol *common.Symbol, scope *common.Scope) common.Instruction

func FetchSymbolLhs

func FetchSymbolLhs(symbol *common.Symbol, scope *common.Scope) common.Instruction

func FunctionAssign

func FunctionAssign(convert []common.Instruction) []common.Instruction

func GetAppendReturnPlace

func GetAppendReturnPlace(num int) common.Instruction

func GetDynamicCallFunc

func GetDynamicCallFunc(lenIn int) common.Instruction

func GetMap32Field

func GetMap32Field(m interface{}, k interface{}) interface{}

func GetMap64Field

func GetMap64Field(m interface{}, k interface{}) interface{}

func GetMapBoolField

func GetMapBoolField(m interface{}, k interface{}) interface{}

func GetMapIFaceField

func GetMapIFaceField(m interface{}, k interface{}) interface{}

func GetMapStrField

func GetMapStrField(m interface{}, k interface{}) interface{}

func GetSliceField

func GetSliceField(s interface{}, i int64) *interface{}

func GetStaticCallFunc

func GetStaticCallFunc(funcPtr *common.Instruction, lenIn int) common.Instruction

func GetTailArray

func GetTailArray(num int) common.Instruction

func GlobalSymbolAssign

func GlobalSymbolAssign(sym *common.Symbol) common.Instruction

func IPow32

func IPow32(a, b int32) int32

func IPow64

func IPow64(a, b int64) int64

func Indirect

func Indirect() common.Instruction

func InitializeMap

func InitializeMap(constructor common.Constructor, mapSet func(m interface{}, k interface{}, v interface{}), num int) common.Instruction

func InitializeMessage

func InitializeMessage(keys []string, num int) common.Instruction

func InitializeSlice

func InitializeSlice(num int) common.Instruction

func LeftUnaryOp

func LeftUnaryOp(op string, opType *common.DataType) common.Instruction

func Len

func Len(lengthFunc LengthFunc) common.Instruction

func LocalSymbolNil

func LocalSymbolNil() common.Instruction

func MapArrIndex

func MapArrIndex(mapGet func(m interface{}, k interface{}) (v interface{}), numFields int) common.Instruction

func MapDelete

func MapDelete(keyType *common.DataType) (mapSet func(m interface{}, k interface{}))

func MapGet

func MapGet(keyType *common.DataType) (mapGet func(m interface{}, k interface{}) (v interface{}))

func MapGetPtr

func MapGetPtr(keyType *common.DataType) (mapSet func(m interface{}, k interface{}) (v *interface{}))

func MapIndex

func MapIndex(mapGet func(m interface{}, k interface{}) (v interface{})) common.Instruction

func MapIndexLhs

func MapIndexLhs(constructor common.Constructor, mapMustGet func(m interface{}, k interface{}) (v *interface{})) common.Instruction

func MapSet

func MapSet(keyType *common.DataType) (mapSet func(m interface{}, k interface{}, v interface{}))

func MessageGet

func MessageGet(m interface{}, k string) interface{}

func MessageGetPtr

func MessageGetPtr(m interface{}, k string) *interface{}

func MessageReset

func MessageReset(m interface{}, k string)

func MessageSet

func MessageSet(m interface{}, k string, v interface{})

func MustGetMap32Field

func MustGetMap32Field(m interface{}, k interface{}) *interface{}

func MustGetMap64Field

func MustGetMap64Field(m interface{}, k interface{}) *interface{}

func MustGetMapBoolField

func MustGetMapBoolField(m interface{}, k interface{}) *interface{}

func MustGetMapIFaceField

func MustGetMapIFaceField(m interface{}, k interface{}) *interface{}

func MustGetMapStrField

func MustGetMapStrField(m interface{}, k interface{}) *interface{}

func Or

func Or(rhsLen int) common.Instruction

func ProgramEnding

func ProgramEnding() common.Instruction

func PushBack

func PushBack() common.Instruction

func PushConstantToStack

func PushConstantToStack(data interface{}) common.Instruction

func PushFront

func PushFront() common.Instruction

func PushLambda

func PushLambda(lambda common.Instruction) common.Instruction

func PushLambdaWithCapture

func PushLambdaWithCapture(rawFunc common.Instruction, capturedVariables []*common.Symbol, closureVariable *common.Symbol) common.Instruction

func RightUnaryOp

func RightUnaryOp(op string, opType *common.DataType) common.Instruction

func Selector

func Selector(fieldName string) common.Instruction

func SelectorEnum

func SelectorEnum(fieldName string) common.Instruction

func SelectorLhs

func SelectorLhs(constructor common.Constructor, fieldName string, oneOfs []string) common.Instruction

func SetMap32Field

func SetMap32Field(m interface{}, k interface{}, v interface{})

func SetMap64Field

func SetMap64Field(m interface{}, k interface{}, v interface{})

func SetMapBoolField

func SetMapBoolField(m interface{}, k interface{}, v interface{})

func SetMapIFaceField

func SetMapIFaceField(m interface{}, k interface{}, v interface{})

func SetMapStrField

func SetMapStrField(m interface{}, k interface{}, v interface{})

func SliceArrIndex

func SliceArrIndex(numIndex int) common.Instruction

func SliceFilter

func SliceFilter(filter common.Instruction, boolConvertFunc TypeConvertFuncBool) common.Instruction

func SliceIndex

func SliceIndex() common.Instruction

func SliceIndexLhs

func SliceIndexLhs() common.Instruction

func StackOffsetToStackPtr

func StackOffsetToStackPtr(spOffset int) common.Instruction

func StackPopN

func StackPopN(n int) common.Instruction

func StackReturn

func StackReturn() common.Instruction

func StackReturnN

func StackReturnN(n int) common.Instruction

func StackReturnVoid

func StackReturnVoid() common.Instruction

func StringArrIndex

func StringArrIndex() common.Instruction

func StringIndex

func StringIndex() common.Instruction

func TakePtr

func TakePtr() common.Instruction

func TypeConvert

func TypeConvert(from *common.DataType, to *common.DataType) common.Instruction

Types

type EmptyFace

type EmptyFace struct {
	Data unsafe.Pointer
	// contains filtered or unexported fields
}

type LengthFunc

type LengthFunc func(from interface{}) int64

func BytesLen

func BytesLen() LengthFunc

func GetLengthFunc

func GetLengthFunc(from *common.DataType) LengthFunc

func MapLen

func MapLen() LengthFunc

func SliceLen

func SliceLen() LengthFunc

func StringLen

func StringLen() LengthFunc

type TypeConvertFunc32f

type TypeConvertFunc32f func(from interface{}) float32

func GetConvertFunc32f

func GetConvertFunc32f(from *common.DataType) (TypeConvertFunc32f, error)

type TypeConvertFunc32i

type TypeConvertFunc32i func(from interface{}) int32

func GetConvertFunc32i

func GetConvertFunc32i(from *common.DataType) (TypeConvertFunc32i, error)

type TypeConvertFunc32u

type TypeConvertFunc32u func(from interface{}) uint32

func GetConvertFunc32u

func GetConvertFunc32u(from *common.DataType) (TypeConvertFunc32u, error)

type TypeConvertFunc64f

type TypeConvertFunc64f func(from interface{}) float64

func GetConvertFunc64f

func GetConvertFunc64f(from *common.DataType) (TypeConvertFunc64f, error)

type TypeConvertFunc64i

type TypeConvertFunc64i func(from interface{}) int64

func GetConvertFunc64i

func GetConvertFunc64i(from *common.DataType) (TypeConvertFunc64i, error)

type TypeConvertFunc64u

type TypeConvertFunc64u func(from interface{}) uint64

func GetConvertFunc64u

func GetConvertFunc64u(from *common.DataType) (TypeConvertFunc64u, error)

type TypeConvertFuncBool

type TypeConvertFuncBool func(from interface{}) bool

func GetConvertFuncBool

func GetConvertFuncBool(from *common.DataType) (TypeConvertFuncBool, error)

type TypeConvertFuncBytes

type TypeConvertFuncBytes func(from interface{}) []byte

func GetConvertFuncBytes

func GetConvertFuncBytes(from *common.DataType) (TypeConvertFuncBytes, error)

type TypeConvertFuncMap

type TypeConvertFuncMap func(from interface{}) interface{}

type TypeConvertFuncMessage

type TypeConvertFuncMessage func(from interface{}) interface{}

type TypeConvertFuncObject

type TypeConvertFuncObject func(from interface{}) interface{}

type TypeConvertFuncSlice

type TypeConvertFuncSlice func(from interface{}) []interface{}

type TypeConvertFuncStr

type TypeConvertFuncStr func(from interface{}) string

func GetConvertFuncStr

func GetConvertFuncStr(from *common.DataType) (TypeConvertFuncStr, error)

Jump to

Keyboard shortcuts

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