1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// Code generated by "stringer -type=Op"; DO NOT EDIT.
package vm
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Nop-0]
_ = x[Add-1]
_ = x[Addr-2]
_ = x[Assign-3]
_ = x[Fassign-4]
_ = x[Vassign-5]
_ = x[Call-6]
_ = x[Calli-7]
_ = x[CallX-8]
_ = x[Deref-9]
_ = x[Dup-10]
_ = x[Fdup-11]
_ = x[Fnew-12]
_ = x[Equal-13]
_ = x[EqualSet-14]
_ = x[Exit-15]
_ = x[Field-16]
_ = x[FieldSet-17]
_ = x[Greater-18]
_ = x[Grow-19]
_ = x[Index-20]
_ = x[Jump-21]
_ = x[JumpTrue-22]
_ = x[JumpFalse-23]
_ = x[JumpSetTrue-24]
_ = x[JumpSetFalse-25]
_ = x[Lower-26]
_ = x[Loweri-27]
_ = x[Mul-28]
_ = x[New-29]
_ = x[Not-30]
_ = x[Pop-31]
_ = x[Push-32]
_ = x[Return-33]
_ = x[Sub-34]
_ = x[Subi-35]
_ = x[Swap-36]
}
const _Op_name = "NopAddAddrAssignFassignVassignCallCalliCallXDerefDupFdupFnewEqualEqualSetExitFieldFieldSetGreaterGrowIndexJumpJumpTrueJumpFalseJumpSetTrueJumpSetFalseLowerLoweriMulNewNotPopPushReturnSubSubiSwap"
var _Op_index = [...]uint8{0, 3, 6, 10, 16, 23, 30, 34, 39, 44, 49, 52, 56, 60, 65, 73, 77, 82, 90, 97, 101, 106, 110, 118, 127, 138, 150, 155, 161, 164, 167, 170, 173, 177, 183, 186, 190, 194}
func (i Op) String() string {
idx := int(i) - 0
if i < 0 || idx >= len(_Op_index)-1 {
return "Op(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Op_name[_Op_index[idx]:_Op_index[idx+1]]
}
|