func (self *FREM) Execute(frame *rtda.Frame) { stack := frame.OperandStack() v2 := stack.PopFloat() v1 := stack.PopFloat() result := math.Mod(v1, v2) stack.PushFloat(result) }
func (self *DREM) Execute(frame *rtda.Frame) { stack := frame.OperandStack() v2 := stack.PopDouble() v1 := stack.PopDouble() result := math.Mod(v1, v2) stack.PushDouble(result) }
func (self *SWAP) Execute(frame *rtda.Frame) { stack := frame.OperandStack() slot1 := stack.PopSlot() slot2 := stack.PopSlot() stack.PushSlot(slot1) stack.PushSlot(slot2) }
func (self *LREM) Execute(frame *rtda.Frame) { stack := frame.OperandStack() v2 := stack.PopLong() v1 := stack.PopLong() if v2 == 0 { panic("java.lang.ArithmeticException: / by zero") } result := v1 % v2 stack.PushLong(result) }
func (self *ICONST_1) Execute(frame *rtda.Frame) { frame.OperandStack().PushInt(1) }
func (self *FCONST_2) Execute(frame *rtda.Frame) { frame.OperandStack().PushFloat(2.0) }
func (self *DCONST_1) Execute(frame *rtda.Frame) { frame.OperandStack().PushDouble(1.0) }
func (self *ACONST_NULL) Execute(frame *rtda.Frame) { frame.OperandStack().PushRef(nil) }
func (self *LCONST_1) Execute(frame *rtda.Frame) { frame.OperandStack().PushLong(1) }
func (self *SIPUSH) Execute(frame *rtda.Frame) { i := int32(self.val) frame.OperandStack().PushInt(i) }
func (self *POP2) Execute(frame *rtda.Frame) { stack := frame.OperandStack() stack.PopSlot() stack.PopSlot() }
func _lstore(frame *rtda.Frame, index uint) { val := frame.OperandStack().PopLong() frame.LocalVars().SetLong(index, val) }
func _iload(frame *rtda.Frame, index uint) { val := frame.LocalVars().GetInt(index) frame.OperandStack().PushInt(val) }
func (self *DUP) Execute(frame *rtda.Frame) { stack := frame.OperandStack() slot := stack.PopSlot() stack.PushSlot(slot) stack.PushSlot(slot) }