Versions in this module Expand all Collapse all v0 v0.2.6 Jun 18, 2025 v0.2.5 Mar 19, 2025 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_i + const ARG_nb + const ARG_p + const ARG_rs + const ARG_st + const EEOF + const EP + const ESTACK + const ET + const ETAG + const FmOffset + const IC + const IP + const IvOffset + const LB_eof + const LB_error + const LB_halt + const LB_missing + const LB_overflow + const LB_skip + const LB_type + const MaxBitmap + const MaxField + const MpOffset + const NbOffset + const PrOffset + const RS + const ST + const SkOffset + const StateMax + const StateSize + const TG + const TP + const TR + const UR + const WP + const WpOffset + var C_skip = hir.RegisterCCall(archSkippingFn(), emu_ccall_skip) + var F_FieldBitmap_Free = hir.RegisterGCall((*FieldBitmap).Free, emu_gcall_FieldBitmap_Free) + var F_decode *hir.CallHandle + var F_error_eof = hir.RegisterGCall(error_eof, emu_gcall_error_eof) + var F_error_missing = hir.RegisterGCall(error_missing, emu_gcall_error_missing) + var F_error_skip = hir.RegisterGCall(error_skip, emu_gcall_error_skip) + var F_error_type = hir.RegisterGCall(error_type, emu_gcall_error_type) + var F_makemap = hir.RegisterGCall(makemap, emu_gcall_makemap) + var F_mallocgc = hir.RegisterGCall(mallocgc, emu_gcall_mallocgc) + var F_mapassign = hir.RegisterGCall(mapassign, emu_gcall_mapassign) + var F_mapassign_fast32 = hir.RegisterGCall(mapassign_fast32, emu_gcall_mapassign_fast32) + var F_mapassign_fast64 = hir.RegisterGCall(mapassign_fast64, emu_gcall_mapassign_fast64) + var F_mapassign_fast64ptr = hir.RegisterGCall(mapassign_fast64ptr, emu_gcall_mapassign_fast64ptr) + var F_mapassign_faststr = hir.RegisterGCall(mapassign_faststr, emu_gcall_mapassign_faststr) + var F_newFieldBitmap = hir.RegisterGCall(newFieldBitmap, emu_gcall_newFieldBitmap) + var F_slicebytetostring = hir.RegisterGCall(slicebytetostring, emu_gcall_slicebytetostring) + var MissCount uint64 = 0 + var TypeCount uint64 = 0 + func DecodeObject(buf []byte, val interface{}) (ret int, err error) + func Pretouch(vt *rt.GoType, opts opts.Options) (map[reflect.Type]struct{}, error) + func SetLinker(v Linker) + func Translate(s Program) hir.Program + type BasicBlock struct + End int + Link []*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 DecodeError struct + func (self DecodeError) Error() string + type Decoder func(buf unsafe.Pointer, nb int, i int, p unsafe.Pointer, rs *RuntimeState, st int) (int, error) + func Link(p hir.Program) Decoder + type FieldBitmap [MaxBitmap]int64 + func (self *FieldBitmap) Append(i int) + func (self *FieldBitmap) Clear() + func (self *FieldBitmap) Free() + 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 + Fn unsafe.Pointer + Id uint16 + Iv int64 + Op OpCode + Sw *int + To int + Tx defs.Tag + Vt *rt.GoType + func (self Instr) Disassemble() string + func (self Instr) IntSeq() (p []int) + type Linker interface + Link func(p hir.Program) Decoder + type LinkerAMD64 struct — darwin/amd64, linux/amd64, windows/amd64 + func (LinkerAMD64) Link(p hir.Program) Decoder + type OpCode uint8 + const OP_bin + const OP_bin_nocopy + const OP_construct + const OP_ctr_decr + const OP_ctr_is_zero + const OP_ctr_load + const OP_defer + const OP_deref + const OP_drop_state + const OP_enum + const OP_goto + const OP_halt + const OP_initialize + const OP_int + const OP_list_alloc + const OP_make_state + const OP_map_alloc + const OP_map_close + const OP_map_set_enum + const OP_map_set_i16 + const OP_map_set_i32 + const OP_map_set_i64 + const OP_map_set_i8 + const OP_map_set_pointer + const OP_map_set_str + const OP_seek + const OP_size + const OP_str + const OP_str_nocopy + const OP_struct_bitmap + const OP_struct_check_type + const OP_struct_ignore + const OP_struct_is_stop + const OP_struct_mark_tag + const OP_struct_read_type + const OP_struct_require + const OP_struct_skip + const OP_struct_switch + const OP_type + 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 + Iv uint64 + Pr unsafe.Pointer + Sk [defs.StackSize]SkipItem + St [defs.StackSize]StateItem + type SkipItem struct + K defs.Tag + N uint32 + T defs.Tag + V defs.Tag + type StateItem struct + Fm *FieldBitmap + Mp *rt.GoMap + Nb uint64 + Wp unsafe.Pointer