values

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nowhere        = Storage(0)
	VarReference   = Storage(storageVSCf | storageVar)
	VarReg         = Storage(storageVSCf | storageVar | storageReg)
	TempReg        = Storage(storageTrCf | storageReg)
	Stack          = Storage(storageSCf | storageVSCf)
	ConditionFlags = Storage(storageSCf | storageTrCf | storageVSCf)
	Imm            = Storage((1 << 5))
	BorrowedReg    = Storage((1 << 5) | storageReg)
	VarMem         = Storage((1 << 5) | storageVSCf | storageVar)
)
View Source
const (
	Eq = Condition(iota)
	Ne
	GeS
	GtS
	GeU
	GtU
	LeS
	LtS
	LeU
	LtU

	OrderedAndEq
	OrderedAndNe
	OrderedAndGe
	OrderedAndGt
	OrderedAndLe
	OrderedAndLt

	UnorderedOrEq
	UnorderedOrNe
	UnorderedOrGe
	UnorderedOrGt
	UnorderedOrLe
	UnorderedOrLt

	MinOrderedAndCondition  = OrderedAndEq
	MinUnorderedOrCondition = UnorderedOrEq
)

Variables

Functions

This section is empty.

Types

type Bounds

type Bounds struct {
	Upper uint32
}

type Condition

type Condition int

type Operand

type Operand struct {
	Bounds  Bounds
	Type    wasm.Type
	Storage Storage
	// contains filtered or unexported fields
}

func ConditionFlagsOperand

func ConditionFlagsOperand(cond Condition) Operand

func ImmOperand

func ImmOperand(t wasm.Type, payload uint64) Operand

func NoOperand

func NoOperand(t wasm.Type) Operand

func RegOperand

func RegOperand(own bool, t wasm.Type, reg regs.R) Operand

func StackOperand

func StackOperand(t wasm.Type) Operand

func TempRegOperand

func TempRegOperand(t wasm.Type, reg regs.R, zeroExt bool) Operand

func VarMemOperand

func VarMemOperand(t wasm.Type, index, offset int32) Operand

func VarReferenceOperand

func VarReferenceOperand(t wasm.Type, index int32) Operand

func VarRegOperand

func VarRegOperand(t wasm.Type, index int32, reg regs.R, zeroExt bool) Operand

func (Operand) Condition

func (o Operand) Condition() Condition

func (Operand) ImmValue

func (o Operand) ImmValue() int64

func (Operand) Reg

func (o Operand) Reg() regs.R

func (Operand) RegZeroExt

func (o Operand) RegZeroExt() bool

func (Operand) String

func (o Operand) String() string

func (Operand) VarIndex

func (o Operand) VarIndex() int32

func (Operand) VarMemOffset

func (o Operand) VarMemOffset() int32

func (Operand) WithBounds

func (o Operand) WithBounds(b Bounds) Operand

type Storage

type Storage uint8

func (Storage) IsReg

func (s Storage) IsReg() bool

func (Storage) IsStackOrConditionFlags

func (s Storage) IsStackOrConditionFlags() bool

func (Storage) IsTempRegOrConditionFlags

func (s Storage) IsTempRegOrConditionFlags() bool

func (Storage) IsVar

func (s Storage) IsVar() bool

func (Storage) IsVarOrStackOrConditionFlags

func (s Storage) IsVarOrStackOrConditionFlags() bool

func (Storage) String

func (s Storage) String() string

Jump to

Keyboard shortcuts

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