Documentation ¶
Index ¶
- type Frame
- type LocalVars
- func (self LocalVars) GetDouble(index uint) float64
- func (self *LocalVars) GetFloat(index uint) float32
- func (self *LocalVars) GetInt(index uint) int32
- func (self *LocalVars) GetLong(index uint) int64
- func (self LocalVars) GetRef(index uint) *heap.Object
- func (self LocalVars) GetThis() *heap.Object
- func (self LocalVars) SetDouble(index uint, val float64)
- func (self *LocalVars) SetFloat(index uint, val float32)
- func (self *LocalVars) SetInt(index uint, val int32)
- func (self *LocalVars) SetLong(index uint, val int64)
- func (self LocalVars) SetRef(index uint, ref *heap.Object)
- func (self LocalVars) SetSlot(index uint, slot Slot)
- type OperandStack
- func (self *OperandStack) GetRefFromTop(n uint) *heap.Object
- func (self *OperandStack) PopBoolean() bool
- func (self *OperandStack) PopDouble() float64
- func (self *OperandStack) PopFloat() float32
- func (self *OperandStack) PopInt() int32
- func (self *OperandStack) PopLong() int64
- func (self *OperandStack) PopRef() *heap.Object
- func (self *OperandStack) PopSlot() Slot
- func (self *OperandStack) PushBoolean(val bool)
- func (self *OperandStack) PushDouble(val float64)
- func (self *OperandStack) PushFloat(val float32)
- func (self *OperandStack) PushInt(val int32)
- func (self *OperandStack) PushLong(val int64)
- func (self *OperandStack) PushRef(ref *heap.Object)
- func (self *OperandStack) PushSlot(slot Slot)
- type Slot
- type Stack
- type Thread
- func (self *Thread) CurrentFrame() *Frame
- func (self *Thread) IsStackEmpty() bool
- func (self *Thread) NewFrame(method *heap.Method) *Frame
- func (self *Thread) PC() int
- func (self *Thread) PopFrame() *Frame
- func (self *Thread) PushFrame(frame *Frame)
- func (self *Thread) SetPC(pc int)
- func (self *Thread) TopFrame() *Frame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
func (Frame) OperandStack ¶
func (self Frame) OperandStack() *OperandStack
type LocalVars ¶
type LocalVars struct {
// contains filtered or unexported fields
}
func NewLocalVars ¶ added in v1.5.0
type OperandStack ¶
type OperandStack struct {
// contains filtered or unexported fields
}
func NewOperandStack ¶ added in v1.5.0
func NewOperandStack(maxStack uint) *OperandStack
func (*OperandStack) GetRefFromTop ¶ added in v1.7.0
func (self *OperandStack) GetRefFromTop(n uint) *heap.Object
获取距离top n个距离的引用 比如GetRefFromTop(0)获取栈顶的引用 比如GetRefFromTop(1)获取距离栈顶1个单位长度的引用
func (*OperandStack) PopBoolean ¶ added in v1.9.0
func (self *OperandStack) PopBoolean() bool
func (*OperandStack) PopDouble ¶
func (self *OperandStack) PopDouble() float64
func (*OperandStack) PopFloat ¶
func (self *OperandStack) PopFloat() float32
func (*OperandStack) PopInt ¶
func (self *OperandStack) PopInt() int32
func (*OperandStack) PopLong ¶
func (self *OperandStack) PopLong() int64
func (*OperandStack) PopRef ¶
func (self *OperandStack) PopRef() *heap.Object
func (*OperandStack) PopSlot ¶ added in v1.5.0
func (self *OperandStack) PopSlot() Slot
reduce the OperandStack size the operandStack size - 1
func (*OperandStack) PushBoolean ¶ added in v1.9.0
func (self *OperandStack) PushBoolean(val bool)
func (*OperandStack) PushDouble ¶
func (self *OperandStack) PushDouble(val float64)
func (*OperandStack) PushFloat ¶
func (self *OperandStack) PushFloat(val float32)
func (*OperandStack) PushInt ¶
func (self *OperandStack) PushInt(val int32)
func (*OperandStack) PushLong ¶
func (self *OperandStack) PushLong(val int64)
func (*OperandStack) PushRef ¶
func (self *OperandStack) PushRef(ref *heap.Object)
func (*OperandStack) PushSlot ¶ added in v1.5.0
func (self *OperandStack) PushSlot(slot Slot)
extend OperandStack size the operandStack size + 1
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
虚拟机栈是JVM运行时数据区的一部分,线程私有 主要存储方法的栈桢 Frame
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
线程
func (*Thread) IsStackEmpty ¶ added in v1.7.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.