gen

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchTable added in v0.4.0

type BranchTable struct {
	RODataAddr      int32
	Targets         []*BranchTarget
	CodeStackOffset int32 // -1 indicates common offset
}

type BranchTarget added in v0.4.0

type BranchTarget struct {
	Label       link.L
	StackOffset int32
	ValueType   abi.Type
	FuncEnd     bool
}

type Func added in v0.4.0

type Func struct {
	*module.M
	*Prog

	Regs regalloc.Allocator

	ResultType abi.Type

	Vars           []VarState
	NumStackParams int32
	NumInitedVars  int32

	StackOffset    int32
	MaxStackOffset int32
	StackCheckAddr int32

	Operands              []val.Operand
	MinBlockOperand       int
	NumStableOperands     int
	NumPersistentOperands int

	BranchTargets []*BranchTarget
	BranchTables  []BranchTable

	TrapTrampolines [trap.NumTraps]TrapTrampoline
}

func (*Func) Consumed added in v0.4.0

func (f *Func) Consumed(x val.Operand)

func (*Func) InitTrapTrampoline added in v0.4.0

func (f *Func) InitTrapTrampoline(id trap.Id)

func (*Func) MapCallAddr added in v0.4.0

func (f *Func) MapCallAddr(retAddr int32)

func (*Func) TrapTrampolineAddr added in v0.4.0

func (f *Func) TrapTrampolineAddr(id trap.Id) (addr int32)

type Prog added in v0.4.0

type Prog struct {
	FuncLinks []link.FuncL
	TrapLinks [trap.NumTraps]link.L
}

type TrapTrampoline added in v0.4.0

type TrapTrampoline struct {
	StackOffset int32
	Link        link.L
}

type VarState added in v0.4.0

type VarState struct {
	Cache       val.Operand
	RefCount    int
	Dirty       bool
	BoundsStack []val.Bounds
}

func (*VarState) ResetCache added in v0.4.0

func (v *VarState) ResetCache()

func (*VarState) TrimBoundsStack added in v0.4.0

func (v *VarState) TrimBoundsStack(size int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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