(index int, t types.VmValue)
| 84 | } |
| 85 | |
| 86 | func (self *ValueStack) Set(index int, t types.VmValue) error { |
| 87 | l := len(self.data) |
| 88 | if index >= l || index < 0 { |
| 89 | return errors.ERR_INDEX_OUT_OF_BOUND |
| 90 | } |
| 91 | self.data[index] = t |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | func (self *ValueStack) Push(t types.VmValue) error { |
| 96 | if int64(len(self.data)) >= self.limit { |