summaryrefslogtreecommitdiff
path: root/vm/op_string.go
blob: 5542c6eedd66aad6b8773655e26bb25b5dfe8fd4 (plain)
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
61
62
63
64
65
66
67
// 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[FnewE-13]
	_ = x[Equal-14]
	_ = x[EqualSet-15]
	_ = x[Exit-16]
	_ = x[Field-17]
	_ = x[FieldE-18]
	_ = x[FieldSet-19]
	_ = x[FieldFset-20]
	_ = x[Greater-21]
	_ = x[Grow-22]
	_ = x[Index-23]
	_ = x[IndexSet-24]
	_ = x[MapIndex-25]
	_ = x[MapSet-26]
	_ = x[Jump-27]
	_ = x[JumpTrue-28]
	_ = x[JumpFalse-29]
	_ = x[JumpSetTrue-30]
	_ = x[JumpSetFalse-31]
	_ = x[Lower-32]
	_ = x[Loweri-33]
	_ = x[Mul-34]
	_ = x[New-35]
	_ = x[Negate-36]
	_ = x[Not-37]
	_ = x[Pop-38]
	_ = x[Push-39]
	_ = x[Return-40]
	_ = x[Sub-41]
	_ = x[Subi-42]
	_ = x[Swap-43]
}

const _Op_name = "NopAddAddrAssignFassignVassignCallCalliCallXDerefDupFdupFnewFnewEEqualEqualSetExitFieldFieldEFieldSetFieldFsetGreaterGrowIndexIndexSetMapIndexMapSetJumpJumpTrueJumpFalseJumpSetTrueJumpSetFalseLowerLoweriMulNewNegateNotPopPushReturnSubSubiSwap"

var _Op_index = [...]uint8{0, 3, 6, 10, 16, 23, 30, 34, 39, 44, 49, 52, 56, 60, 65, 70, 78, 82, 87, 93, 101, 110, 117, 121, 126, 134, 142, 148, 152, 160, 169, 180, 192, 197, 203, 206, 209, 215, 218, 221, 225, 231, 234, 238, 242}

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]]
}