-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcode_string.go
52 lines (46 loc) · 1.32 KB
/
opcode_string.go
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
// Code generated by "stringer -type opcode -trimprefix op"; DO NOT EDIT.
package bcl
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[opNOP-0]
_ = x[opRET-1]
_ = x[opPRINT-2]
_ = x[opSETLOCAL-3]
_ = x[opGETLOCAL-4]
_ = x[opDEFBLOCK-5]
_ = x[opENDBLOCK-6]
_ = x[opSETFIELD-7]
_ = x[opGETFIELD-8]
_ = x[opCONST-9]
_ = x[opNIL-10]
_ = x[opZERO-11]
_ = x[opONE-12]
_ = x[opTRUE-13]
_ = x[opFALSE-14]
_ = x[opNOT-15]
_ = x[opEQ-16]
_ = x[opLT-17]
_ = x[opGT-18]
_ = x[opADD-19]
_ = x[opSUB-20]
_ = x[opMUL-21]
_ = x[opDIV-22]
_ = x[opNEG-23]
_ = x[opUNPLUS-24]
_ = x[opJUMP-25]
_ = x[opLOOP-26]
_ = x[opJFALSE-27]
_ = x[opPOP-28]
_ = x[opPOPN-29]
}
const _opcode_name = "NOPRETPRINTSETLOCALGETLOCALDEFBLOCKENDBLOCKSETFIELDGETFIELDCONSTNILZEROONETRUEFALSENOTEQLTGTADDSUBMULDIVNEGUNPLUSJUMPLOOPJFALSEPOPPOPN"
var _opcode_index = [...]uint8{0, 3, 6, 11, 19, 27, 35, 43, 51, 59, 64, 67, 71, 74, 78, 83, 86, 88, 90, 92, 95, 98, 101, 104, 107, 113, 117, 121, 127, 130, 134}
func (i opcode) String() string {
if i >= opcode(len(_opcode_index)-1) {
return "opcode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _opcode_name[_opcode_index[i]:_opcode_index[i+1]]
}