rt

package
v0.0.0-...-5ea726b Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZeroStep    = 16
	MaxZeroSize = 65536
)
View Source
const (
	GoItabFuncBase = unsafe.Offsetof(GoItab{}.ftab)
)

Variables

View Source
var (
	V_pWriteBarrier  = unsafe.Pointer(&writeBarrier)
	F_gcWriteBarrier = FuncAddr(gcWriteBarrier)
)
View Source
var (
	F_memmove = FuncAddr(memmove)
	R_memmove = resolveClobberSet(memmove)
	S_memmove = abi.ABI.LayoutFunc(-1, reflect.TypeOf(memmove))
)
View Source
var (
	F_morestack_noctxt = FuncAddr(morestack_noctxt)
)
View Source
var (
	MemZero = asmmemzero()
)

Functions

func BytesFrom

func BytesFrom(p unsafe.Pointer, n int, c int) (r []byte)

func FuncAddr

func FuncAddr(f interface{}) unsafe.Pointer

func FuncName

func FuncName(p unsafe.Pointer) string

func MapClear

func MapClear(m interface{})

Types

type BitVec

type BitVec struct {
	N uintptr
	B unsafe.Pointer
}

func (BitVec) Bit

func (self BitVec) Bit(i uintptr) byte

func (BitVec) String

func (self BitVec) String() string

type Bitmap

type Bitmap struct {
	N int
	B []byte
}

func (*Bitmap) Append

func (self *Bitmap) Append(bv int)

func (*Bitmap) AppendMany

func (self *Bitmap) AppendMany(n int, bv int)

func (*Bitmap) Set

func (self *Bitmap) Set(i int, bv int)

type Frame

type Frame struct {
	SpTab     []Stack
	ArgSize   uintptr
	ArgPtrs   *StackMap
	LocalPtrs *StackMap
}

type GoEface

type GoEface struct {
	Type  *GoType
	Value unsafe.Pointer
}

func UnpackEface

func UnpackEface(v interface{}) GoEface

type GoIface

type GoIface struct {
	Itab  *GoItab
	Value unsafe.Pointer
}

type GoItab

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

type GoSlice

type GoSlice struct {
	Ptr unsafe.Pointer
	Len int
	Cap int
}

type GoType

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

func UnpackType

func UnpackType(t reflect.Type) *GoType

func (*GoType) IsPtr

func (self *GoType) IsPtr() bool

func (*GoType) Kind

func (self *GoType) Kind() reflect.Kind

func (*GoType) Pack

func (self *GoType) Pack() (t reflect.Type)

func (*GoType) String

func (self *GoType) String() string

type MemZeroFn

type MemZeroFn struct {
	Fn unsafe.Pointer
	Sz []uintptr
}

func (MemZeroFn) ForSize

func (self MemZeroFn) ForSize(n uintptr) unsafe.Pointer

type Method

type Method struct {
	Id int
	Vt *GoType
}

func AsMethod

func AsMethod(ty reflect.Type, id int) Method

func GetMethod

func GetMethod(tp interface{}, name string) Method

type Stack

type Stack struct {
	Sp uintptr
	Nb uintptr
}

type StackMap

type StackMap struct {
	N int32
	L int32
	B [1]byte
}

func (*StackMap) Get

func (self *StackMap) Get(i int32) BitVec

func (*StackMap) Pin

func (self *StackMap) Pin() uintptr

func (*StackMap) String

func (self *StackMap) String() string

type StackMapBuilder

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

func (*StackMapBuilder) AddField

func (self *StackMapBuilder) AddField(ptr bool)

func (*StackMapBuilder) AddFields

func (self *StackMapBuilder) AddFields(n int, ptr bool)

func (*StackMapBuilder) Build

func (self *StackMapBuilder) Build() (p *StackMap)

Jump to

Keyboard shortcuts

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