Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARETURN ¶
type ARETURN struct {
base.NoOperandsInstruction
}
type DRETURN ¶
type DRETURN struct {
base.NoOperandsInstruction
}
type FRETURN ¶
type FRETURN struct {
base.NoOperandsInstruction
}
type IRETURN ¶
type IRETURN struct {
base.NoOperandsInstruction
}
type LOOKUP_SWITCH ¶
type LOOKUP_SWITCH struct {
// contains filtered or unexported fields
}
func (*LOOKUP_SWITCH) Execute ¶
func (self *LOOKUP_SWITCH) Execute(frame *chapter4_rtdt.Frame)
func (*LOOKUP_SWITCH) FetchOperands ¶
func (self *LOOKUP_SWITCH) FetchOperands(reader *base.BytecodeReader)
*
matchOffsets 有点像map k->case值,v->跳转偏移量。
type LRETURN ¶
type LRETURN struct {
base.NoOperandsInstruction
}
type RETURN ¶
type RETURN struct {
base.NoOperandsInstruction
}
type TABLE_SWITCH ¶
type TABLE_SWITCH struct {
// contains filtered or unexported fields
}
func (*TABLE_SWITCH) Execute ¶
func (self *TABLE_SWITCH) Execute(frame *chapter4_rtdt.Frame)
*
弹出一个int看看是否在 low - high 范围内 不在走default 在走对应的偏移量
func (*TABLE_SWITCH) FetchOperands ¶
func (self *TABLE_SWITCH) FetchOperands(reader *base.BytecodeReader)
*
TABLE_SWITCH指令操作码后面有 0~3 个字节的padding,保证defaultOffset在字节码中的地址是4的倍数
Click to show internal directories.
Click to hide internal directories.