Documentation ¶
Index ¶
- Constants
- Variables
- type Instr
- func (self Instr) Byte() byte
- func (self Instr) Disassemble() string
- func (self Instr) I64() int64
- func (self Instr) Op() Op
- func (self Instr) Vf() uint8
- func (self Instr) Vi() int
- func (self Instr) Vk() reflect.Kind
- func (self Instr) Vlen() int
- func (self Instr) Vp() (vt reflect.Type, pv bool)
- func (self Instr) Vp2() (vt *rt.GoType, pv bool)
- func (self Instr) Vr() *rt.GoType
- func (self Instr) Vs() (v string)
- func (self Instr) Vt() reflect.Type
- func (self Instr) Vtab() (vt *rt.GoType, itab *rt.GoItab)
- type Op
- type Program
- func (self *Program) Add(op Op)
- func (self Program) Disassemble() string
- func (self *Program) Int(op Op, vi int)
- func (self *Program) Key(op Op)
- func (self Program) PC() int
- func (self Program) Pin(i int)
- func (self Program) Rel(v []int)
- func (self *Program) Rtt(op Op, vt reflect.Type)
- func (self *Program) Str(op Op, vs string)
- func (self Program) Tag(n int)
- func (self *Program) Vp(op Op, vt reflect.Type, pv bool)
- func (self *Program) Vtab(op Op, vt reflect.Type, itab *rt.GoItab)
Constants ¶
View Source
const OpSize = unsafe.Sizeof(NewInsOp(0))
Variables ¶
View Source
var OpNames = [256]string{ OP_null: "null", OP_empty_arr: "empty_arr", OP_empty_obj: "empty_obj", OP_bool: "bool", OP_i8: "i8", OP_i16: "i16", OP_i32: "i32", OP_i64: "i64", OP_u8: "u8", OP_u16: "u16", OP_u32: "u32", OP_u64: "u64", OP_f32: "f32", OP_f64: "f64", OP_str: "str", OP_bin: "bin", OP_quote: "quote", OP_number: "number", OP_eface: "eface", OP_iface: "iface", OP_byte: "byte", OP_text: "text", OP_deref: "deref", OP_index: "index", OP_load: "load", OP_save: "save", OP_drop: "drop", OP_drop_2: "drop_2", OP_recurse: "recurse", OP_is_nil: "is_nil", OP_is_nil_p1: "is_nil_p1", OP_is_zero_1: "is_zero_1", OP_is_zero_2: "is_zero_2", OP_is_zero_4: "is_zero_4", OP_is_zero_8: "is_zero_8", OP_is_zero_map: "is_zero_map", OP_goto: "goto", OP_map_iter: "map_iter", OP_map_stop: "map_stop", OP_map_check_key: "map_check_key", OP_map_write_key: "map_write_key", OP_map_value_next: "map_value_next", OP_slice_len: "slice_len", OP_slice_next: "slice_next", OP_marshal: "marshal", OP_marshal_p: "marshal_p", OP_marshal_text: "marshal_text", OP_marshal_text_p: "marshal_text_p", OP_cond_set: "cond_set", OP_cond_testc: "cond_testc", }
Functions ¶
This section is empty.
Types ¶
type Instr ¶
type Instr struct {
// contains filtered or unexported fields
}
func (Instr) Disassemble ¶
type Op ¶
type Op uint8
const ( OP_null Op = iota + 1 OP_empty_arr OP_empty_obj OP_bool OP_i8 OP_i16 OP_i32 OP_i64 OP_u8 OP_u16 OP_u32 OP_u64 OP_f32 OP_f64 OP_str OP_bin OP_quote OP_number OP_eface OP_iface OP_byte OP_text OP_deref OP_index OP_load OP_save OP_drop OP_drop_2 OP_recurse OP_is_nil OP_is_nil_p1 OP_is_zero_1 OP_is_zero_2 OP_is_zero_4 OP_is_zero_8 OP_is_zero_map OP_goto OP_map_iter OP_map_stop OP_map_check_key OP_map_write_key OP_map_value_next OP_slice_len OP_slice_next OP_marshal OP_marshal_p OP_marshal_text OP_marshal_text_p OP_cond_set OP_cond_testc )
func OP_is_zero_ints ¶
func OP_is_zero_ints() Op
func OP_uintptr ¶
func OP_uintptr() Op
Click to show internal directories.
Click to hide internal directories.