Versions in this module Expand all Collapse all v0 v0.2.4 Jan 9, 2025 v0.2.3 Dec 4, 2024 v0.2.2 Nov 28, 2024 v0.2.1 Oct 23, 2024 v0.2.0 Aug 8, 2024 v0.1.17 Aug 8, 2024 Changes in this version + const ARG_buf + const ARG_len + const ARG_mem_data + const ARG_mem_itab + const ARG_p + const ARG_rs + const ARG_st + const BmOffset + const EP + const ET + const LB_duplicated + const LB_error + const LB_halt + const LB_nomem + const LB_overflow + const LnOffset + const MiKeyOffset + const MiOffset + const MiValueOffset + const RC + const RL + const RP + const RS + const RangeUint16 + const RangeUint8 + const ST + const StateMax + const StateSize + const TP + const TR + const UR + const WP + const WpOffset + var F_encode *hir.CallHandle + var F_mapiternext = hir.RegisterGCall(mapiternext, emu_gcall_mapiternext) + var F_mapiterstart = hir.RegisterGCall(mapiterstart, emu_gcall_mapiterstart) + var F_unique32 = hir.RegisterGCall(unique32, emu_gcall_unique32) + var F_unique64 = hir.RegisterGCall(unique64, emu_gcall_unique64) + var F_uniquestr = hir.RegisterGCall(uniquestr, emu_gcall_uniquestr) + var MissCount uint64 = 0 + var TypeCount uint64 = 0 + func EncodeObject(buf []byte, mem thrift.NocopyWriter, val interface{}) (ret int, err error) + func EncodedSize(val interface{}) int + func Pretouch(vt *rt.GoType, opts opts.Options) error + func SetLinker(v Linker) + func Translate(s Program) hir.Program + type BasicBlock struct + End int + Link *BasicBlock + Next *BasicBlock + P Program + Src int + func (self *BasicBlock) Free() + func (self *BasicBlock) Len() int + func (self *BasicBlock) String() string + type Compiler struct + func CreateCompiler() *Compiler + func (self *Compiler) Apply(o opts.Options) *Compiler + func (self *Compiler) Compile(vt reflect.Type) (_ Program, err error) + func (self *Compiler) CompileAndFree(vt reflect.Type) (ret Program, err error) + func (self *Compiler) Free() + type Encoder func(buf unsafe.Pointer, len int, mem thrift.NocopyWriter, p unsafe.Pointer, ...) (int, error) + func Link(p hir.Program) Encoder + type GraphBuilder struct + Graph map[int]*BasicBlock + Pin map[int]bool + func (self *GraphBuilder) Build(p Program) *BasicBlock + func (self *GraphBuilder) BuildAndFree(p Program) (bb *BasicBlock) + func (self *GraphBuilder) Free() + type Instr struct + Iv int64 + Op OpCode + Pr unsafe.Pointer + To int + Uv int32 + func (self Instr) Byte(i int64) int8 + func (self Instr) Disassemble() string + func (self Instr) Long(i int64) int32 + func (self Instr) Quad(i int64) int64 + func (self Instr) Str() string + func (self Instr) Vt() *rt.GoType + func (self Instr) Word(i int64) int16 + type Linker interface + Link func(p hir.Program) Encoder + type LinkerAMD64 struct — darwin/amd64, linux/amd64, windows/amd64 + func (LinkerAMD64) Link(p hir.Program) Encoder + type OpCode uint8 + const OP_byte + const OP_defer + const OP_deref + const OP_drop_state + const OP_goto + const OP_halt + const OP_if_eq_imm + const OP_if_eq_str + const OP_if_hasbuf + const OP_if_nil + const OP_length + const OP_list_begin + const OP_list_decr + const OP_list_if_empty + const OP_list_if_next + const OP_long + const OP_make_state + const OP_map_begin + const OP_map_if_empty + const OP_map_if_next + const OP_map_key + const OP_map_len + const OP_map_next + const OP_map_value + const OP_memcpy_be + const OP_quad + const OP_seek + const OP_sint + const OP_size_check + const OP_size_const + const OP_size_defer + const OP_size_dyn + const OP_size_map + const OP_unique + const OP_word + func (self OpCode) String() string + type Program []Instr + func Optimize(p Program) Program + func (self Program) Disassemble() string + func (self Program) Free() + type RuntimeState struct + Bm [1024]uint64 + St [defs.StackSize]StateItem + Val unsafe.Pointer + type StateItem struct + Ln uintptr + Mi rt.GoMapIterator + Wp unsafe.Pointer