Documentation ¶
Index ¶
- type Frame
- func (this *Frame) LocalVars() *LocalVars
- func (this *Frame) Lower() *Frame
- func (this *Frame) Method() *heap.Method
- func (this *Frame) NextPC() int
- func (this *Frame) OperandStack() *OperandStack
- func (this *Frame) RevertNextPC()
- func (this *Frame) SetNextPC(nextPc int)
- func (this *Frame) Thread() *Thread
- type LocalVars
- func (this LocalVars) GetArrayObject(index uint) *heap.ArrayObject
- func (this LocalVars) GetDouble(index uint) float64
- func (this LocalVars) GetFloat(index uint) float32
- func (this LocalVars) GetInt(index uint) int32
- func (this LocalVars) GetLong(index uint) int64
- func (this LocalVars) GetNormalObject(index uint) *heap.NormalObject
- func (this LocalVars) GetRef(index uint) heap.Object
- func (this LocalVars) GetThis() heap.Object
- func (this LocalVars) SetDouble(index uint, val float64)
- func (this LocalVars) SetFloat(index uint, val float32)
- func (this LocalVars) SetInt(index uint, val int32)
- func (this LocalVars) SetLong(index uint, val int64)
- func (this LocalVars) SetRef(index uint, ref heap.Object)
- func (this LocalVars) SetSlot(index uint, slot Slot)
- type OperandStack
- func (this *OperandStack) Clear()
- func (this *OperandStack) GetRefFromTop(count uint) heap.Object
- func (this *OperandStack) PopDouble() float64
- func (this *OperandStack) PopFloat() float32
- func (this *OperandStack) PopInt() int32
- func (this *OperandStack) PopLong() int64
- func (this *OperandStack) PopNormalObject() *heap.NormalObject
- func (this *OperandStack) PopRef() heap.Object
- func (this *OperandStack) PopSlot() Slot
- func (this *OperandStack) PushDouble(val float64)
- func (this *OperandStack) PushFloat(val float32)
- func (this *OperandStack) PushInt(val int32)
- func (this *OperandStack) PushLong(val int64)
- func (this *OperandStack) PushRef(ref heap.Object)
- func (this *OperandStack) PushSlot(slot Slot)
- type Slot
- type Stack
- type Thread
- func (this *Thread) CurrentFrame() *Frame
- func (this *Thread) IsStackEmpty() bool
- func (this *Thread) NewFrame(method *heap.Method) *Frame
- func (this *Thread) PC() int
- func (this *Thread) PopFrame() *Frame
- func (this *Thread) PushFrame(frame *Frame)
- func (this *Thread) SetPC(newPc int)
- func (this *Thread) StackSize() uint
- func (this *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 (this *Frame) OperandStack() *OperandStack
func (*Frame) RevertNextPC ¶
func (this *Frame) RevertNextPC()
type LocalVars ¶
type LocalVars []Slot
func NewLocalVars ¶
func (LocalVars) GetArrayObject ¶
func (this LocalVars) GetArrayObject(index uint) *heap.ArrayObject
func (LocalVars) GetNormalObject ¶
func (this LocalVars) GetNormalObject(index uint) *heap.NormalObject
type OperandStack ¶
type OperandStack struct {
// contains filtered or unexported fields
}
func NewOperandStack ¶
func NewOperandStack(maxStack uint) *OperandStack
func (*OperandStack) Clear ¶
func (this *OperandStack) Clear()
func (*OperandStack) GetRefFromTop ¶
func (this *OperandStack) GetRefFromTop(count uint) heap.Object
func (*OperandStack) PopDouble ¶
func (this *OperandStack) PopDouble() float64
func (*OperandStack) PopFloat ¶
func (this *OperandStack) PopFloat() float32
func (*OperandStack) PopInt ¶
func (this *OperandStack) PopInt() int32
func (*OperandStack) PopLong ¶
func (this *OperandStack) PopLong() int64
func (*OperandStack) PopNormalObject ¶
func (this *OperandStack) PopNormalObject() *heap.NormalObject
func (*OperandStack) PopRef ¶
func (this *OperandStack) PopRef() heap.Object
func (*OperandStack) PopSlot ¶
func (this *OperandStack) PopSlot() Slot
func (*OperandStack) PushDouble ¶
func (this *OperandStack) PushDouble(val float64)
func (*OperandStack) PushFloat ¶
func (this *OperandStack) PushFloat(val float32)
func (*OperandStack) PushInt ¶
func (this *OperandStack) PushInt(val int32)
func (*OperandStack) PushLong ¶
func (this *OperandStack) PushLong(val int64)
func (*OperandStack) PushRef ¶
func (this *OperandStack) PushRef(ref heap.Object)
func (*OperandStack) PushSlot ¶
func (this *OperandStack) PushSlot(slot Slot)
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
func (*Thread) CurrentFrame ¶
func (*Thread) IsStackEmpty ¶
Click to show internal directories.
Click to hide internal directories.