Documentation
¶
Index ¶
- func EmitCallClosure(c Value, params []Value) (insts []wat.Inst)
- func GenSymbolName(src string) string
- func GetFnMangleName(v interface{}, mainPkg string) (internal string, external string)
- func GetPkgMangleName(pkg_path string) (string, string)
- func IsNumber(v Value) bool
- func SetCurrentModule(m *Module)
- type Array
- func (t *Array) AddMethod(m Method)
- func (t *Array) EmitLoadFromAddr(addr Value, offset int) (insts []wat.Inst)
- func (t *Array) EmitLoadFromAddrNoRetain(addr Value, offset int) (insts []wat.Inst)
- func (t *Array) Equal(u ValueType) bool
- func (t *Array) Hash() int
- func (t *Array) Kind() TypeKind
- func (t *Array) Method(i int) Method
- func (t *Array) Named() string
- func (t *Array) NumMethods() int
- func (t *Array) OnComp() int
- func (t *Array) Raw() []wat.ValueType
- func (t *Array) SetHash(h int)
- func (t *Array) Size() int
- type Block
- func (t *Block) AddMethod(m Method)
- func (t *Block) EmitLoadFromAddr(addr Value, offset int) (insts []wat.Inst)
- func (t *Block) EmitLoadFromAddrNoRetain(addr Value, offset int) (insts []wat.Inst)
- func (t *Block) Equal(u ValueType) bool
- func (t *Block) Hash() int
- func (t *Block) Kind() TypeKind
- func (t *Block) Method(i int) Method
- func (t *Block) Named() string
- func (t *Block) NumMethods() int
- func (t *Block) OnComp() int
- func (t *Block) Raw() []wat.ValueType
- func (t *Block) SetHash(h int)
- func (t *Block) Size() int
- type Bool
- func (t *Bool) AddMethod(m Method)
- func (t *Bool) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Bool) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Bool) Equal(u ValueType) bool
- func (t *Bool) Hash() int
- func (t *Bool) Kind() TypeKind
- func (t *Bool) Method(i int) Method
- func (t *Bool) Named() string
- func (t *Bool) NumMethods() int
- func (t *Bool) OnComp() int
- func (t *Bool) Raw() []wat.ValueType
- func (t *Bool) SetHash(h int)
- func (t *Bool) Size() int
- type Closure
- func (t *Closure) AddMethod(m Method)
- func (t *Closure) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Closure) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Closure) Equal(u ValueType) bool
- func (t *Closure) Hash() int
- func (t *Closure) Kind() TypeKind
- func (t *Closure) Method(i int) Method
- func (t *Closure) Named() string
- func (t *Closure) NumMethods() int
- func (t *Closure) OnComp() int
- func (t *Closure) Raw() []wat.ValueType
- func (t *Closure) SetHash(h int)
- func (t *Closure) Size() int
- type Complex128
- func (t *Complex128) AddMethod(m Method)
- func (t *Complex128) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Complex128) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Complex128) Equal(u ValueType) bool
- func (t *Complex128) Hash() int
- func (t *Complex128) Kind() TypeKind
- func (t *Complex128) Method(i int) Method
- func (t *Complex128) Named() string
- func (t *Complex128) NumMethods() int
- func (t *Complex128) OnComp() int
- func (t *Complex128) Raw() []wat.ValueType
- func (t *Complex128) SetHash(h int)
- func (t *Complex128) Size() int
- type Complex64
- func (t *Complex64) AddMethod(m Method)
- func (t *Complex64) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Complex64) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Complex64) Equal(u ValueType) bool
- func (t *Complex64) Hash() int
- func (t *Complex64) Kind() TypeKind
- func (t *Complex64) Method(i int) Method
- func (t *Complex64) Named() string
- func (t *Complex64) NumMethods() int
- func (t *Complex64) OnComp() int
- func (t *Complex64) Raw() []wat.ValueType
- func (t *Complex64) SetHash(h int)
- func (t *Complex64) Size() int
- type F32
- func (t *F32) AddMethod(m Method)
- func (t *F32) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *F32) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *F32) Equal(u ValueType) bool
- func (t *F32) Hash() int
- func (t *F32) Kind() TypeKind
- func (t *F32) Method(i int) Method
- func (t *F32) Named() string
- func (t *F32) NumMethods() int
- func (t *F32) OnComp() int
- func (t *F32) Raw() []wat.ValueType
- func (t *F32) SetHash(h int)
- func (t *F32) Size() int
- type F64
- func (t *F64) AddMethod(m Method)
- func (t *F64) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *F64) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *F64) Equal(u ValueType) bool
- func (t *F64) Hash() int
- func (t *F64) Kind() TypeKind
- func (t *F64) Method(i int) Method
- func (t *F64) Named() string
- func (t *F64) NumMethods() int
- func (t *F64) OnComp() int
- func (t *F64) Raw() []wat.ValueType
- func (t *F64) SetHash(h int)
- func (t *F64) Size() int
- type FnSig
- type Function
- type Global
- type I16
- func (t *I16) AddMethod(m Method)
- func (t *I16) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *I16) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *I16) Equal(u ValueType) bool
- func (t *I16) Hash() int
- func (t *I16) Kind() TypeKind
- func (t *I16) Method(i int) Method
- func (t *I16) Named() string
- func (t *I16) NumMethods() int
- func (t *I16) OnComp() int
- func (t *I16) Raw() []wat.ValueType
- func (t *I16) SetHash(h int)
- func (t *I16) Size() int
- type I32
- func (t *I32) AddMethod(m Method)
- func (t *I32) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *I32) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *I32) Equal(u ValueType) bool
- func (t *I32) Hash() int
- func (t *I32) Kind() TypeKind
- func (t *I32) Method(i int) Method
- func (t *I32) Named() string
- func (t *I32) NumMethods() int
- func (t *I32) OnComp() int
- func (t *I32) Raw() []wat.ValueType
- func (t *I32) SetHash(h int)
- func (t *I32) Size() int
- type I64
- func (t *I64) AddMethod(m Method)
- func (t *I64) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *I64) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *I64) Equal(u ValueType) bool
- func (t *I64) Hash() int
- func (t *I64) Kind() TypeKind
- func (t *I64) Method(i int) Method
- func (t *I64) Named() string
- func (t *I64) NumMethods() int
- func (t *I64) OnComp() int
- func (t *I64) Raw() []wat.ValueType
- func (t *I64) SetHash(h int)
- func (t *I64) Size() int
- type I8
- func (t *I8) AddMethod(m Method)
- func (t *I8) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *I8) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *I8) Equal(u ValueType) bool
- func (t *I8) Hash() int
- func (t *I8) Kind() TypeKind
- func (t *I8) Method(i int) Method
- func (t *I8) Named() string
- func (t *I8) NumMethods() int
- func (t *I8) OnComp() int
- func (t *I8) Raw() []wat.ValueType
- func (t *I8) SetHash(h int)
- func (t *I8) Size() int
- type Interface
- func (t *Interface) AddMethod(m Method)
- func (t *Interface) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Interface) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Interface) Equal(u ValueType) bool
- func (t *Interface) Hash() int
- func (t *Interface) Kind() TypeKind
- func (t *Interface) Method(i int) Method
- func (t *Interface) Named() string
- func (t *Interface) NumMethods() int
- func (t *Interface) OnComp() int
- func (t *Interface) Raw() []wat.ValueType
- func (t *Interface) SetHash(h int)
- func (t *Interface) Size() int
- type Map
- func (t *Map) AddMethod(m Method)
- func (t *Map) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Map) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Map) Equal(u ValueType) bool
- func (t *Map) Hash() int
- func (t *Map) Kind() TypeKind
- func (t *Map) Method(i int) Method
- func (t *Map) Named() string
- func (t *Map) NumMethods() int
- func (t *Map) OnComp() int
- func (t *Map) Raw() []wat.ValueType
- func (t *Map) SetHash(h int)
- func (t *Map) Size() int
- type Method
- type Module
- func (m *Module) AddFnSig(sig *FnSig) string
- func (m *Module) AddFunc(f *Function)
- func (m *Module) AddGlobal(name_internal string, name_export string, typ ValueType, is_pointer bool, ...) Value
- func (m *Module) AddImportFunc(moduleName string, objName string, funcName string, sig FnSig)
- func (m *Module) AddTableElem(elem string) int
- func (m *Module) EmitAssginValue(lh, rh Value) []wat.Inst
- func (m *Module) EmitBinOp(x, y Value, op wat.OpCode) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenAppend(x, y Value) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenCap(x Value) (insts []wat.Inst)
- func (m *Module) EmitGenChangeInterface(x Value, destType ValueType) (insts []wat.Inst)
- func (m *Module) EmitGenConvert(x Value, typ ValueType) (insts []wat.Inst)
- func (m *Module) EmitGenCopy(x, y Value) (insts []wat.Inst)
- func (m *Module) EmitGenDelete(ma, k Value) (insts []wat.Inst)
- func (m *Module) EmitGenExtract(x Value, id int) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenField(x Value, field_id int) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenFieldAddr(x Value, field_id int) (insts []wat.Inst, ret_type ValueType, ret_val Value)
- func (m *Module) EmitGenIndex(x, id Value) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenIndexAddr(x, id Value) (insts []wat.Inst, ret_type ValueType, ret_val Value)
- func (m *Module) EmitGenLen(x Value) (insts []wat.Inst)
- func (m *Module) EmitGenLookup(x, index Value, CommaOk bool) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenMakeInterface(x Value, itype ValueType) (insts []wat.Inst)
- func (m *Module) EmitGenMakeMap(map_type ValueType) (insts []wat.Inst)
- func (m *Module) EmitGenMakeSlice(slice_type ValueType, Len, Cap Value) (insts []wat.Inst)
- func (m *Module) EmitGenMapUpdate(ma, k, v Value) (insts []wat.Inst)
- func (m *Module) EmitGenNext_Map(iter Value, ktype ValueType, vtype ValueType) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenNext_String(iter Value) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenRange(x Value) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenRaw(x Value) (insts []wat.Inst)
- func (m *Module) EmitGenSetFinalizer(x Value, fn_id int) (insts []wat.Inst)
- func (m *Module) EmitGenSlice(x, low, high, max Value) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitGenTypeAssert(x Value, destType ValueType, commaOk bool) (insts []wat.Inst)
- func (m *Module) EmitHeapAlloc(typ ValueType) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitInvoke(i Value, params []Value, mid int, typeName string) (insts []wat.Inst)
- func (m *Module) EmitLoad(addr Value) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitPrintClosure(v Value) (insts []wat.Inst)
- func (m *Module) EmitPrintInterface(v Value) (insts []wat.Inst)
- func (m *Module) EmitPrintRef(v Value) (insts []wat.Inst)
- func (m *Module) EmitPrintString(v Value) (insts []wat.Inst)
- func (m *Module) EmitStackAlloc(typ ValueType) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) EmitStore(addr, value Value, is_init bool) (insts []wat.Inst)
- func (m *Module) EmitStringValue(v Value) (insts []wat.Inst)
- func (m *Module) EmitUnOp(x Value, op wat.OpCode) (insts []wat.Inst, ret_type ValueType)
- func (m *Module) FindFnSig(sig *FnSig) string
- func (m *Module) FindFunc(fn_name string) *Function
- func (m *Module) FindGlobalByName(name string) Value
- func (m *Module) FindGlobalByValue(v ssa.Value) Value
- func (m *Module) GenConstFnValue(fn_name string, sig FnSig) Value
- func (m *Module) GenValueType_Array(base ValueType, capacity int, name string) *Array
- func (m *Module) GenValueType_Block(base ValueType) *Block
- func (m *Module) GenValueType_Closure(sig FnSig) *Closure
- func (m *Module) GenValueType_Interface(name string) (typ *Interface, found bool)
- func (module *Module) GenValueType_Map(key_type, elem_type ValueType, name string, ei_type ValueType) *Map
- func (m *Module) GenValueType_Ptr(base ValueType) *Ptr
- func (m *Module) GenValueType_Ref(base ValueType) *Ref
- func (m *Module) GenValueType_Slice(base ValueType, name string) *Slice
- func (m *Module) GenValueType_Struct(name string) (*Struct, bool)
- func (m *Module) GenValueType_Tuple(fields []ValueType) *Tuple
- func (m *Module) GenValueType_bool(name string) *Bool
- func (m *Module) GenValueType_complex128(name string) *Complex128
- func (m *Module) GenValueType_complex64(name string) *Complex64
- func (m *Module) GenValueType_f32(name string) *F32
- func (m *Module) GenValueType_f64(name string) *F64
- func (m *Module) GenValueType_i16(name string) *I16
- func (m *Module) GenValueType_i32(name string) *I32
- func (m *Module) GenValueType_i64(name string) *I64
- func (m *Module) GenValueType_i8(name string) *I8
- func (m *Module) GenValueType_int(name string) ValueType
- func (m *Module) GenValueType_rune(name string) *Rune
- func (m *Module) GenValueType_string(name string) *String
- func (m *Module) GenValueType_u16(name string) *U16
- func (m *Module) GenValueType_u32(name string) *U32
- func (m *Module) GenValueType_u64(name string) *U64
- func (m *Module) GenValueType_u8(name string) *U8
- func (m *Module) GenValueType_uint(name string) ValueType
- func (m *Module) GenValueType_void(name string) *Void
- func (m *Module) NewStructField(name string, typ ValueType) *StructField
- func (m *Module) SetGlobalInitValue(name string, val Value)
- func (m *Module) ToWatModule() *wat.Module
- type Ptr
- func (t *Ptr) AddMethod(m Method)
- func (t *Ptr) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Ptr) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Ptr) Equal(u ValueType) bool
- func (t *Ptr) Hash() int
- func (t *Ptr) Kind() TypeKind
- func (t *Ptr) Method(i int) Method
- func (t *Ptr) Named() string
- func (t *Ptr) NumMethods() int
- func (t *Ptr) OnComp() int
- func (t *Ptr) Raw() []wat.ValueType
- func (t *Ptr) SetHash(h int)
- func (t *Ptr) Size() int
- type Ref
- func (t *Ref) AddMethod(m Method)
- func (t *Ref) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Ref) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Ref) Equal(u ValueType) bool
- func (t *Ref) Hash() int
- func (t *Ref) Kind() TypeKind
- func (t *Ref) Method(i int) Method
- func (t *Ref) Named() string
- func (t *Ref) NumMethods() int
- func (t *Ref) OnComp() int
- func (t *Ref) Raw() []wat.ValueType
- func (t *Ref) SetHash(h int)
- func (t *Ref) Size() int
- type Rune
- func (t *Rune) AddMethod(m Method)
- func (t *Rune) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Rune) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Rune) Equal(u ValueType) bool
- func (t *Rune) Hash() int
- func (t *Rune) Kind() TypeKind
- func (t *Rune) Method(i int) Method
- func (t *Rune) Named() string
- func (t *Rune) NumMethods() int
- func (t *Rune) OnComp() int
- func (t *Rune) Raw() []wat.ValueType
- func (t *Rune) SetHash(h int)
- func (t *Rune) Size() int
- type Slice
- func (t *Slice) AddMethod(m Method)
- func (t *Slice) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Slice) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Slice) Equal(u ValueType) bool
- func (t *Slice) Hash() int
- func (t *Slice) Kind() TypeKind
- func (t *Slice) Method(i int) Method
- func (t *Slice) Named() string
- func (t *Slice) NumMethods() int
- func (t *Slice) OnComp() int
- func (t *Slice) Raw() []wat.ValueType
- func (t *Slice) SetHash(h int)
- func (t *Slice) Size() int
- type String
- func (t *String) AddMethod(m Method)
- func (t *String) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *String) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *String) Equal(u ValueType) bool
- func (t *String) Hash() int
- func (t *String) Kind() TypeKind
- func (t *String) Method(i int) Method
- func (t *String) Named() string
- func (t *String) NumMethods() int
- func (t *String) OnComp() int
- func (t *String) Raw() []wat.ValueType
- func (t *String) SetHash(h int)
- func (t *String) Size() int
- type Struct
- func (t *Struct) AddMethod(m Method)
- func (t *Struct) AppendField(f *StructField)
- func (t *Struct) EmitLoadFromAddr(addr Value, offset int) (insts []wat.Inst)
- func (t *Struct) EmitLoadFromAddrNoRetain(addr Value, offset int) (insts []wat.Inst)
- func (t *Struct) Equal(u ValueType) bool
- func (t *Struct) Finish()
- func (t *Struct) Hash() int
- func (t *Struct) Kind() TypeKind
- func (t *Struct) Method(i int) Method
- func (t *Struct) Named() string
- func (t *Struct) NumMethods() int
- func (t *Struct) OnComp() int
- func (t *Struct) Raw() []wat.ValueType
- func (t *Struct) SetHash(h int)
- func (t *Struct) Size() int
- type StructField
- type Tuple
- func (t *Tuple) AddMethod(m Method)
- func (t *Tuple) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Tuple) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Tuple) Equal(u ValueType) bool
- func (t *Tuple) Hash() int
- func (t *Tuple) Kind() TypeKind
- func (t *Tuple) Method(i int) Method
- func (t *Tuple) Named() string
- func (t *Tuple) NumMethods() int
- func (t *Tuple) OnComp() int
- func (t *Tuple) Raw() []wat.ValueType
- func (t *Tuple) SetHash(h int)
- func (t *Tuple) Size() int
- type TypeKind
- type U16
- func (t *U16) AddMethod(m Method)
- func (t *U16) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *U16) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *U16) Equal(u ValueType) bool
- func (t *U16) Hash() int
- func (t *U16) Kind() TypeKind
- func (t *U16) Method(i int) Method
- func (t *U16) Named() string
- func (t *U16) NumMethods() int
- func (t *U16) OnComp() int
- func (t *U16) Raw() []wat.ValueType
- func (t *U16) SetHash(h int)
- func (t *U16) Size() int
- type U32
- func (t *U32) AddMethod(m Method)
- func (t *U32) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *U32) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *U32) Equal(u ValueType) bool
- func (t *U32) Hash() int
- func (t *U32) Kind() TypeKind
- func (t *U32) Method(i int) Method
- func (t *U32) Named() string
- func (t *U32) NumMethods() int
- func (t *U32) OnComp() int
- func (t *U32) Raw() []wat.ValueType
- func (t *U32) SetHash(h int)
- func (t *U32) Size() int
- type U64
- func (t *U64) AddMethod(m Method)
- func (t *U64) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *U64) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *U64) Equal(u ValueType) bool
- func (t *U64) Hash() int
- func (t *U64) Kind() TypeKind
- func (t *U64) Method(i int) Method
- func (t *U64) Named() string
- func (t *U64) NumMethods() int
- func (t *U64) OnComp() int
- func (t *U64) Raw() []wat.ValueType
- func (t *U64) SetHash(h int)
- func (t *U64) Size() int
- type U8
- func (t *U8) AddMethod(m Method)
- func (t *U8) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *U8) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *U8) Equal(u ValueType) bool
- func (t *U8) Hash() int
- func (t *U8) Kind() TypeKind
- func (t *U8) Method(i int) Method
- func (t *U8) Named() string
- func (t *U8) NumMethods() int
- func (t *U8) OnComp() int
- func (t *U8) Raw() []wat.ValueType
- func (t *U8) SetHash(h int)
- func (t *U8) Size() int
- type Value
- func ComplexExtractImag(v Value) Value
- func ComplexExtractReal(v Value) Value
- func ExtractFieldByID(x Value, id int) Value
- func ExtractFieldByName(x Value, field_name string) Value
- func NewConst(lit string, t ValueType) Value
- func NewGlobal(name string, typ ValueType) Value
- func NewLocal(name string, typ ValueType) Value
- type ValueKind
- type ValueType
- type Void
- func (t *Void) AddMethod(m Method)
- func (t *Void) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
- func (t *Void) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
- func (t *Void) Equal(u ValueType) bool
- func (t *Void) Hash() int
- func (t *Void) Kind() TypeKind
- func (t *Void) Method(i int) Method
- func (t *Void) Named() string
- func (t *Void) NumMethods() int
- func (t *Void) OnComp() int
- func (t *Void) Raw() []wat.ValueType
- func (t *Void) SetHash(h int)
- func (t *Void) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenSymbolName ¶
func GetFnMangleName ¶ added in v0.6.0
func GetPkgMangleName ¶
func SetCurrentModule ¶
func SetCurrentModule(m *Module)
Types ¶
type Array ¶
************************************* Array: *************************************
func (*Array) EmitLoadFromAddr ¶
func (*Array) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Array) NumMethods ¶ added in v0.7.0
func (t *Array) NumMethods() int
type Block ¶
type Block struct { Base ValueType // contains filtered or unexported fields }
************************************* Block: *************************************
func (*Block) EmitLoadFromAddr ¶
func (*Block) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Block) NumMethods ¶ added in v0.7.0
func (t *Block) NumMethods() int
type Bool ¶ added in v0.9.0
type Bool struct {
// contains filtered or unexported fields
}
************************************* Bool: *************************************
func (*Bool) EmitLoadFromAddr ¶ added in v0.9.0
func (*Bool) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Bool) NumMethods ¶ added in v0.9.0
func (t *Bool) NumMethods() int
type Closure ¶
type Closure struct {
// contains filtered or unexported fields
}
************************************* Closure: *************************************
func (*Closure) EmitLoadFromAddr ¶
func (*Closure) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Closure) NumMethods ¶ added in v0.7.0
func (t *Closure) NumMethods() int
type Complex128 ¶ added in v0.19.0
type Complex128 struct {
// contains filtered or unexported fields
}
************************************* Complex128: *************************************
func (*Complex128) EmitLoadFromAddr ¶ added in v0.19.0
func (t *Complex128) EmitLoadFromAddr(addr Value, offset int) []wat.Inst
func (*Complex128) EmitLoadFromAddrNoRetain ¶ added in v0.19.0
func (t *Complex128) EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst
func (*Complex128) Equal ¶ added in v0.19.0
func (t *Complex128) Equal(u ValueType) bool
func (*Complex128) Kind ¶ added in v0.19.0
func (t *Complex128) Kind() TypeKind
func (*Complex128) NumMethods ¶ added in v0.19.0
func (t *Complex128) NumMethods() int
func (*Complex128) Raw ¶ added in v0.19.0
func (t *Complex128) Raw() []wat.ValueType
func (*Complex128) Size ¶ added in v0.19.0
func (t *Complex128) Size() int
type Complex64 ¶ added in v0.19.0
type Complex64 struct {
// contains filtered or unexported fields
}
************************************* Complex64: *************************************
func (*Complex64) EmitLoadFromAddr ¶ added in v0.19.0
func (*Complex64) EmitLoadFromAddrNoRetain ¶ added in v0.19.0
func (*Complex64) NumMethods ¶ added in v0.19.0
func (t *Complex64) NumMethods() int
type F32 ¶
type F32 struct {
// contains filtered or unexported fields
}
************************************* F32: *************************************
func (*F32) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*F32) NumMethods ¶ added in v0.9.0
func (t *F32) NumMethods() int
type F64 ¶
type F64 struct {
// contains filtered or unexported fields
}
************************************* F64: *************************************
func (*F64) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*F64) NumMethods ¶ added in v0.9.0
func (t *F64) NumMethods() int
type Function ¶
type Function struct { InternalName string ExternalName string ExportName string // add by chai, 临时添加, 用于 fix export name 的 js 名字问题 ExplicitExported bool Results []ValueType Params []Value Locals []Value Insts []wat.Inst }
************************************* Function: *************************************
type Global ¶ added in v0.9.0
type Global struct { Name string Name_exp string Type ValueType // contains filtered or unexported fields }
************************************* Global: *************************************
type I16 ¶
type I16 struct {
// contains filtered or unexported fields
}
************************************* I16: *************************************
func (*I16) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*I16) NumMethods ¶ added in v0.9.0
func (t *I16) NumMethods() int
type I32 ¶
type I32 struct {
// contains filtered or unexported fields
}
************************************* I32: *************************************
func (*I32) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*I32) NumMethods ¶ added in v0.9.0
func (t *I32) NumMethods() int
type I64 ¶
type I64 struct {
// contains filtered or unexported fields
}
************************************* I64: *************************************
func (*I64) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*I64) NumMethods ¶ added in v0.9.0
func (t *I64) NumMethods() int
type I8 ¶
type I8 struct {
// contains filtered or unexported fields
}
************************************* I8: *************************************
func (*I8) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*I8) NumMethods ¶ added in v0.9.0
func (t *I8) NumMethods() int
type Interface ¶ added in v0.6.0
type Interface struct {
// contains filtered or unexported fields
}
************************************* Interface: *************************************
func (*Interface) EmitLoadFromAddr ¶ added in v0.6.0
func (*Interface) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Interface) NumMethods ¶ added in v0.7.0
func (t *Interface) NumMethods() int
type Map ¶ added in v0.17.0
************************************* Map: *************************************
func (*Map) EmitLoadFromAddr ¶ added in v0.17.0
func (*Map) EmitLoadFromAddrNoRetain ¶ added in v0.17.0
func (*Map) NumMethods ¶ added in v0.17.0
func (t *Map) NumMethods() int
type Method ¶ added in v0.7.0
************************************* Method: *************************************
type Module ¶
type Module struct {
VOID, BOOL, RUNE, U8, U16, I32, U32, UPTR, I64, U64, INT, UINT, F32, F64, COMPLEX64, COMPLEX128, STRING, BYTES ValueType
Funcs []*Function
Globals []Global
DataSeg *wat.DataSeg
BaseWat string
// contains filtered or unexported fields
}
************************************* Module: *************************************
func (*Module) AddImportFunc ¶
func (*Module) AddTableElem ¶
func (*Module) EmitAssginValue ¶ added in v0.5.0
func (*Module) EmitGenAppend ¶ added in v0.5.0
func (*Module) EmitGenChangeInterface ¶ added in v0.7.0
func (*Module) EmitGenConvert ¶ added in v0.5.0
func (*Module) EmitGenCopy ¶ added in v0.8.0
func (*Module) EmitGenDelete ¶ added in v0.17.0
func (*Module) EmitGenExtract ¶ added in v0.5.0
func (*Module) EmitGenField ¶ added in v0.5.0
func (*Module) EmitGenFieldAddr ¶ added in v0.5.0
func (*Module) EmitGenIndex ¶ added in v0.5.0
func (*Module) EmitGenIndexAddr ¶ added in v0.5.0
func (*Module) EmitGenLookup ¶ added in v0.5.0
func (*Module) EmitGenMakeInterface ¶ added in v0.6.0
func (*Module) EmitGenMakeMap ¶ added in v0.17.0
func (*Module) EmitGenMakeSlice ¶ added in v0.5.0
func (*Module) EmitGenMapUpdate ¶ added in v0.17.0
func (*Module) EmitGenNext_Map ¶ added in v0.17.0
func (*Module) EmitGenNext_String ¶ added in v0.9.0
func (*Module) EmitGenRange ¶ added in v0.9.0
func (*Module) EmitGenSetFinalizer ¶ added in v0.9.0
func (*Module) EmitGenSlice ¶ added in v0.5.0
func (*Module) EmitGenTypeAssert ¶ added in v0.7.0
func (*Module) EmitHeapAlloc ¶ added in v0.5.0
func (*Module) EmitInvoke ¶ added in v0.6.0
func (*Module) EmitPrintClosure ¶ added in v0.11.0
func (*Module) EmitPrintInterface ¶ added in v0.8.0
func (*Module) EmitPrintRef ¶ added in v0.11.0
func (*Module) EmitPrintString ¶ added in v0.5.0
func (*Module) EmitStackAlloc ¶ added in v0.5.0
func (*Module) EmitStringValue ¶ added in v0.6.0
func (*Module) FindGlobalByName ¶ added in v0.6.0
func (*Module) FindGlobalByValue ¶ added in v0.6.0
func (*Module) GenConstFnValue ¶ added in v0.5.0
func (*Module) GenValueType_Array ¶ added in v0.5.0
func (*Module) GenValueType_Block ¶ added in v0.5.0
func (*Module) GenValueType_Closure ¶ added in v0.5.0
func (*Module) GenValueType_Interface ¶ added in v0.6.0
func (*Module) GenValueType_Map ¶ added in v0.17.0
func (*Module) GenValueType_Ptr ¶ added in v0.5.0
func (*Module) GenValueType_Ref ¶ added in v0.5.0
func (*Module) GenValueType_Slice ¶ added in v0.6.0
func (*Module) GenValueType_Struct ¶ added in v0.5.0
func (*Module) GenValueType_Tuple ¶ added in v0.5.0
func (*Module) GenValueType_bool ¶ added in v0.9.0
func (*Module) GenValueType_complex128 ¶ added in v0.19.0
func (m *Module) GenValueType_complex128(name string) *Complex128
func (*Module) GenValueType_complex64 ¶ added in v0.19.0
func (*Module) GenValueType_f32 ¶ added in v0.9.0
func (*Module) GenValueType_f64 ¶ added in v0.9.0
func (*Module) GenValueType_i16 ¶ added in v0.9.0
func (*Module) GenValueType_i32 ¶ added in v0.9.0
func (*Module) GenValueType_i64 ¶ added in v0.9.0
func (*Module) GenValueType_i8 ¶ added in v0.9.0
func (*Module) GenValueType_int ¶ added in v0.9.0
func (*Module) GenValueType_rune ¶ added in v0.9.0
func (*Module) GenValueType_string ¶ added in v0.9.0
func (*Module) GenValueType_u16 ¶ added in v0.9.0
func (*Module) GenValueType_u32 ¶ added in v0.9.0
func (*Module) GenValueType_u64 ¶ added in v0.9.0
func (*Module) GenValueType_u8 ¶ added in v0.9.0
func (*Module) GenValueType_uint ¶ added in v0.9.0
func (*Module) GenValueType_void ¶ added in v0.9.0
func (*Module) NewStructField ¶ added in v0.7.0
func (m *Module) NewStructField(name string, typ ValueType) *StructField
func (*Module) SetGlobalInitValue ¶ added in v0.6.0
func (*Module) ToWatModule ¶
type Ptr ¶ added in v0.5.0
type Ptr struct { Base ValueType // contains filtered or unexported fields }
************************************* Ptr: *************************************
func (*Ptr) EmitLoadFromAddr ¶ added in v0.5.0
func (*Ptr) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Ptr) NumMethods ¶ added in v0.7.0
func (t *Ptr) NumMethods() int
type Ref ¶
type Ref struct { Base ValueType // contains filtered or unexported fields }
************************************* Ref: *************************************
func (*Ref) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Ref) NumMethods ¶ added in v0.7.0
func (t *Ref) NumMethods() int
type Rune ¶ added in v0.9.0
type Rune struct {
// contains filtered or unexported fields
}
************************************* tRune: *************************************
func (*Rune) EmitLoadFromAddr ¶ added in v0.9.0
func (*Rune) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Rune) NumMethods ¶ added in v0.9.0
func (t *Rune) NumMethods() int
type Slice ¶
type Slice struct { Base ValueType // contains filtered or unexported fields }
************************************* Slice: *************************************
func (*Slice) EmitLoadFromAddr ¶
func (*Slice) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Slice) NumMethods ¶ added in v0.7.0
func (t *Slice) NumMethods() int
type String ¶
type String struct {
// contains filtered or unexported fields
}
************************************* String: *************************************
func (*String) EmitLoadFromAddr ¶
func (*String) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*String) NumMethods ¶ added in v0.7.0
func (t *String) NumMethods() int
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
************************************* Struct: *************************************
func (*Struct) AppendField ¶ added in v0.7.0
func (t *Struct) AppendField(f *StructField)
func (*Struct) EmitLoadFromAddr ¶
func (*Struct) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Struct) NumMethods ¶ added in v0.7.0
func (t *Struct) NumMethods() int
type StructField ¶ added in v0.7.0
type StructField struct {
// contains filtered or unexported fields
}
************************************* StructField: *************************************
func (*StructField) Equal ¶ added in v0.7.0
func (i *StructField) Equal(u *StructField) bool
func (*StructField) Name ¶ added in v0.7.0
func (i *StructField) Name() string
func (*StructField) Type ¶ added in v0.7.0
func (i *StructField) Type() ValueType
type Tuple ¶
type Tuple struct { Fields []ValueType // contains filtered or unexported fields }
************************************* Tuple: *************************************
func (*Tuple) EmitLoadFromAddr ¶
func (*Tuple) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Tuple) NumMethods ¶ added in v0.7.0
func (t *Tuple) NumMethods() int
type U16 ¶
type U16 struct {
// contains filtered or unexported fields
}
************************************* tU16: *************************************
func (*U16) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*U16) NumMethods ¶ added in v0.9.0
func (t *U16) NumMethods() int
type U32 ¶
type U32 struct {
// contains filtered or unexported fields
}
************************************* U32: *************************************
func (*U32) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*U32) NumMethods ¶ added in v0.9.0
func (t *U32) NumMethods() int
type U64 ¶
type U64 struct {
// contains filtered or unexported fields
}
************************************* U64: *************************************
func (*U64) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*U64) NumMethods ¶ added in v0.9.0
func (t *U64) NumMethods() int
type U8 ¶
type U8 struct {
// contains filtered or unexported fields
}
************************************* U8: *************************************
func (*U8) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*U8) NumMethods ¶ added in v0.9.0
func (t *U8) NumMethods() int
type Value ¶
type Value interface { Name() string Kind() ValueKind Type() ValueType EmitInit() []wat.Inst EmitPush() []wat.Inst EmitPushNoRetain() []wat.Inst EmitPop() []wat.Inst EmitRelease() []wat.Inst Bin() []byte // contains filtered or unexported methods }
************************************* Value: *************************************
func ComplexExtractImag ¶ added in v0.19.0
func ComplexExtractReal ¶ added in v0.19.0
func ExtractFieldByID ¶ added in v0.9.0
func ExtractFieldByName ¶ added in v0.9.0
type ValueType ¶
type ValueType interface { Named() string Size() int Kind() TypeKind Raw() []wat.ValueType Equal(ValueType) bool EmitLoadFromAddr(addr Value, offset int) []wat.Inst EmitLoadFromAddrNoRetain(addr Value, offset int) []wat.Inst Hash() int SetHash(h int) AddMethod(m Method) NumMethods() int Method(i int) Method OnComp() int // contains filtered or unexported methods }
************************************* ValueType: *************************************
type Void ¶ added in v0.9.0
type Void struct {
// contains filtered or unexported fields
}
************************************* Void: *************************************
func (*Void) EmitLoadFromAddr ¶ added in v0.9.0
func (*Void) EmitLoadFromAddrNoRetain ¶ added in v0.11.0
func (*Void) NumMethods ¶ added in v0.9.0
func (t *Void) NumMethods() int