opcode: use underscored names in String()

This commit is contained in:
Evgenii Stratonikov 2020-05-21 12:54:50 +03:00
parent 9b2d045a29
commit e53055a560
2 changed files with 161 additions and 161 deletions

View file

@ -46,25 +46,25 @@ const (
// Flow control // Flow control
NOP Opcode = 0x21 NOP Opcode = 0x21
JMP Opcode = 0x22 JMP Opcode = 0x22
JMPL Opcode = 0x23 JMPL Opcode = 0x23 // JMP_L
JMPIF Opcode = 0x24 JMPIF Opcode = 0x24
JMPIFL Opcode = 0x25 JMPIFL Opcode = 0x25 // JMPIF_L
JMPIFNOT Opcode = 0x26 JMPIFNOT Opcode = 0x26
JMPIFNOTL Opcode = 0x27 JMPIFNOTL Opcode = 0x27 // JMPIFNOT_L
JMPEQ Opcode = 0x28 JMPEQ Opcode = 0x28
JMPEQL Opcode = 0x29 JMPEQL Opcode = 0x29 // JMPEQ_L
JMPNE Opcode = 0x2A JMPNE Opcode = 0x2A
JMPNEL Opcode = 0x2B JMPNEL Opcode = 0x2B // JMPNE_L
JMPGT Opcode = 0x2C JMPGT Opcode = 0x2C
JMPGTL Opcode = 0x2D JMPGTL Opcode = 0x2D // JMPGT_L
JMPGE Opcode = 0x2E JMPGE Opcode = 0x2E
JMPGEL Opcode = 0x2F JMPGEL Opcode = 0x2F // JMPGE_L
JMPLT Opcode = 0x30 JMPLT Opcode = 0x30
JMPLTL Opcode = 0x31 JMPLTL Opcode = 0x31 // JMPLT_L
JMPLE Opcode = 0x32 JMPLE Opcode = 0x32
JMPLEL Opcode = 0x33 JMPLEL Opcode = 0x33 // JMPLE_L
CALL Opcode = 0x34 CALL Opcode = 0x34
CALLL Opcode = 0x35 CALLL Opcode = 0x35 // CALL_L
CALLA Opcode = 0x36 CALLA Opcode = 0x36
// Exceptions // Exceptions
@ -193,7 +193,7 @@ const (
UNPACK Opcode = 0xC1 UNPACK Opcode = 0xC1
NEWARRAY0 Opcode = 0xC2 NEWARRAY0 Opcode = 0xC2
NEWARRAY Opcode = 0xC3 NEWARRAY Opcode = 0xC3
NEWARRAYT Opcode = 0xC4 NEWARRAYT Opcode = 0xC4 // NEWARRAY_T
NEWSTRUCT0 Opcode = 0xC5 NEWSTRUCT0 Opcode = 0xC5
NEWSTRUCT Opcode = 0xC6 NEWSTRUCT Opcode = 0xC6
NEWMAP Opcode = 0xC8 NEWMAP Opcode = 0xC8

View file

@ -1,4 +1,4 @@
// Code generated by "stringer -type Opcode"; DO NOT EDIT. // Code generated by "stringer -type Opcode -linecomment"; DO NOT EDIT.
package opcode package opcode
@ -192,7 +192,7 @@ func _() {
_ = x[CONVERT-219] _ = x[CONVERT-219]
} }
const _Opcode_name = "PUSHINT8PUSHINT16PUSHINT32PUSHINT64PUSHINT128PUSHINT256PUSHAPUSHNULLPUSHDATA1PUSHDATA2PUSHDATA4PUSHM1PUSH0PUSH1PUSH2PUSH3PUSH4PUSH5PUSH6PUSH7PUSH8PUSH9PUSH10PUSH11PUSH12PUSH13PUSH14PUSH15PUSH16NOPJMPJMPLJMPIFJMPIFLJMPIFNOTJMPIFNOTLJMPEQJMPEQLJMPNEJMPNELJMPGTJMPGTLJMPGEJMPGELJMPLTJMPLTLJMPLEJMPLELCALLCALLLCALLAABORTASSERTTHROWRETSYSCALLDEPTHDROPNIPXDROPCLEARDUPOVERPICKTUCKSWAPOLDPUSH1ROLLREVERSE3REVERSE4REVERSENINITSSLOTINITSLOTLDSFLD0LDSFLD1LDSFLD2LDSFLD3LDSFLD4LDSFLD5LDSFLD6LDSFLDSTSFLD0STSFLD1STSFLD2STSFLD3STSFLD4STSFLD5STSFLD6STSFLDLDLOC0LDLOC1LDLOC2LDLOC3LDLOC4LDLOC5LDLOC6LDLOCSTLOC0STLOC1STLOC2STLOC3STLOC4STLOC5STLOC6STLOCLDARG0LDARG1LDARG2LDARG3LDARG4LDARG5LDARG6LDARGSTARG0STARG1STARG2STARG3STARG4STARG5STARG6STARGNEWBUFFERMEMCPYCATSUBSTRLEFTRIGHTINVERTANDORXOREQUALNOTEQUALSIGNABSNEGATEINCDECADDSUBMULDIVMODSHLSHRNOTBOOLANDBOOLORNZNUMEQUALNUMNOTEQUALLTLTEGTGTEMINMAXWITHINPACKUNPACKNEWARRAY0NEWARRAYNEWARRAYTNEWSTRUCT0NEWSTRUCTNEWMAPSIZEHASKEYKEYSVALUESPICKITEMAPPENDSETITEMREVERSEITEMSREMOVECLEARITEMSISNULLISTYPECONVERT" const _Opcode_name = "PUSHINT8PUSHINT16PUSHINT32PUSHINT64PUSHINT128PUSHINT256PUSHAPUSHNULLPUSHDATA1PUSHDATA2PUSHDATA4PUSHM1PUSH0PUSH1PUSH2PUSH3PUSH4PUSH5PUSH6PUSH7PUSH8PUSH9PUSH10PUSH11PUSH12PUSH13PUSH14PUSH15PUSH16NOPJMPJMP_LJMPIFJMPIF_LJMPIFNOTJMPIFNOT_LJMPEQJMPEQ_LJMPNEJMPNE_LJMPGTJMPGT_LJMPGEJMPGE_LJMPLTJMPLT_LJMPLEJMPLE_LCALLCALL_LCALLAABORTASSERTTHROWRETSYSCALLDEPTHDROPNIPXDROPCLEARDUPOVERPICKTUCKSWAPFIXME remove #927ROLLREVERSE3REVERSE4REVERSENINITSSLOTINITSLOTLDSFLD0LDSFLD1LDSFLD2LDSFLD3LDSFLD4LDSFLD5LDSFLD6LDSFLDSTSFLD0STSFLD1STSFLD2STSFLD3STSFLD4STSFLD5STSFLD6STSFLDLDLOC0LDLOC1LDLOC2LDLOC3LDLOC4LDLOC5LDLOC6LDLOCSTLOC0STLOC1STLOC2STLOC3STLOC4STLOC5STLOC6STLOCLDARG0LDARG1LDARG2LDARG3LDARG4LDARG5LDARG6LDARGSTARG0STARG1STARG2STARG3STARG4STARG5STARG6STARGNEWBUFFERMEMCPYCATSUBSTRLEFTRIGHTINVERTANDORXOREQUALNOTEQUALSIGNABSNEGATEINCDECADDSUBMULDIVMODSHLSHRNOTBOOLANDBOOLORNZNUMEQUALNUMNOTEQUALLTLTEGTGTEMINMAXWITHINPACKUNPACKNEWARRAY0NEWARRAYNEWARRAY_TNEWSTRUCT0NEWSTRUCTNEWMAPSIZEHASKEYKEYSVALUESPICKITEMAPPENDSETITEMREVERSEITEMSREMOVECLEARITEMSISNULLISTYPECONVERT"
var _Opcode_map = map[Opcode]string{ var _Opcode_map = map[Opcode]string{
0: _Opcode_name[0:8], 0: _Opcode_name[0:8],
@ -226,154 +226,154 @@ var _Opcode_map = map[Opcode]string{
32: _Opcode_name[187:193], 32: _Opcode_name[187:193],
33: _Opcode_name[193:196], 33: _Opcode_name[193:196],
34: _Opcode_name[196:199], 34: _Opcode_name[196:199],
35: _Opcode_name[199:203], 35: _Opcode_name[199:204],
36: _Opcode_name[203:208], 36: _Opcode_name[204:209],
37: _Opcode_name[208:214], 37: _Opcode_name[209:216],
38: _Opcode_name[214:222], 38: _Opcode_name[216:224],
39: _Opcode_name[222:231], 39: _Opcode_name[224:234],
40: _Opcode_name[231:236], 40: _Opcode_name[234:239],
41: _Opcode_name[236:242], 41: _Opcode_name[239:246],
42: _Opcode_name[242:247], 42: _Opcode_name[246:251],
43: _Opcode_name[247:253], 43: _Opcode_name[251:258],
44: _Opcode_name[253:258], 44: _Opcode_name[258:263],
45: _Opcode_name[258:264], 45: _Opcode_name[263:270],
46: _Opcode_name[264:269], 46: _Opcode_name[270:275],
47: _Opcode_name[269:275], 47: _Opcode_name[275:282],
48: _Opcode_name[275:280], 48: _Opcode_name[282:287],
49: _Opcode_name[280:286], 49: _Opcode_name[287:294],
50: _Opcode_name[286:291], 50: _Opcode_name[294:299],
51: _Opcode_name[291:297], 51: _Opcode_name[299:306],
52: _Opcode_name[297:301], 52: _Opcode_name[306:310],
53: _Opcode_name[301:306], 53: _Opcode_name[310:316],
54: _Opcode_name[306:311], 54: _Opcode_name[316:321],
55: _Opcode_name[311:316], 55: _Opcode_name[321:326],
56: _Opcode_name[316:322], 56: _Opcode_name[326:332],
58: _Opcode_name[322:327], 58: _Opcode_name[332:337],
64: _Opcode_name[327:330], 64: _Opcode_name[337:340],
65: _Opcode_name[330:337], 65: _Opcode_name[340:347],
67: _Opcode_name[337:342], 67: _Opcode_name[347:352],
69: _Opcode_name[342:346], 69: _Opcode_name[352:356],
70: _Opcode_name[346:349], 70: _Opcode_name[356:359],
72: _Opcode_name[349:354], 72: _Opcode_name[359:364],
73: _Opcode_name[354:359], 73: _Opcode_name[364:369],
74: _Opcode_name[359:362], 74: _Opcode_name[369:372],
75: _Opcode_name[362:366], 75: _Opcode_name[372:376],
77: _Opcode_name[366:370], 77: _Opcode_name[376:380],
78: _Opcode_name[370:374], 78: _Opcode_name[380:384],
80: _Opcode_name[374:378], 80: _Opcode_name[384:388],
81: _Opcode_name[378:386], 81: _Opcode_name[388:405],
82: _Opcode_name[386:390], 82: _Opcode_name[405:409],
83: _Opcode_name[390:398], 83: _Opcode_name[409:417],
84: _Opcode_name[398:406], 84: _Opcode_name[417:425],
85: _Opcode_name[406:414], 85: _Opcode_name[425:433],
86: _Opcode_name[414:423], 86: _Opcode_name[433:442],
87: _Opcode_name[423:431], 87: _Opcode_name[442:450],
88: _Opcode_name[431:438], 88: _Opcode_name[450:457],
89: _Opcode_name[438:445], 89: _Opcode_name[457:464],
90: _Opcode_name[445:452], 90: _Opcode_name[464:471],
91: _Opcode_name[452:459], 91: _Opcode_name[471:478],
92: _Opcode_name[459:466], 92: _Opcode_name[478:485],
93: _Opcode_name[466:473], 93: _Opcode_name[485:492],
94: _Opcode_name[473:480], 94: _Opcode_name[492:499],
95: _Opcode_name[480:486], 95: _Opcode_name[499:505],
96: _Opcode_name[486:493], 96: _Opcode_name[505:512],
97: _Opcode_name[493:500], 97: _Opcode_name[512:519],
98: _Opcode_name[500:507], 98: _Opcode_name[519:526],
99: _Opcode_name[507:514], 99: _Opcode_name[526:533],
100: _Opcode_name[514:521], 100: _Opcode_name[533:540],
101: _Opcode_name[521:528], 101: _Opcode_name[540:547],
102: _Opcode_name[528:535], 102: _Opcode_name[547:554],
103: _Opcode_name[535:541], 103: _Opcode_name[554:560],
104: _Opcode_name[541:547], 104: _Opcode_name[560:566],
105: _Opcode_name[547:553], 105: _Opcode_name[566:572],
106: _Opcode_name[553:559], 106: _Opcode_name[572:578],
107: _Opcode_name[559:565], 107: _Opcode_name[578:584],
108: _Opcode_name[565:571], 108: _Opcode_name[584:590],
109: _Opcode_name[571:577], 109: _Opcode_name[590:596],
110: _Opcode_name[577:583], 110: _Opcode_name[596:602],
111: _Opcode_name[583:588], 111: _Opcode_name[602:607],
112: _Opcode_name[588:594], 112: _Opcode_name[607:613],
113: _Opcode_name[594:600], 113: _Opcode_name[613:619],
114: _Opcode_name[600:606], 114: _Opcode_name[619:625],
115: _Opcode_name[606:612], 115: _Opcode_name[625:631],
116: _Opcode_name[612:618], 116: _Opcode_name[631:637],
117: _Opcode_name[618:624], 117: _Opcode_name[637:643],
118: _Opcode_name[624:630], 118: _Opcode_name[643:649],
119: _Opcode_name[630:635], 119: _Opcode_name[649:654],
120: _Opcode_name[635:641], 120: _Opcode_name[654:660],
121: _Opcode_name[641:647], 121: _Opcode_name[660:666],
122: _Opcode_name[647:653], 122: _Opcode_name[666:672],
123: _Opcode_name[653:659], 123: _Opcode_name[672:678],
124: _Opcode_name[659:665], 124: _Opcode_name[678:684],
125: _Opcode_name[665:671], 125: _Opcode_name[684:690],
126: _Opcode_name[671:677], 126: _Opcode_name[690:696],
127: _Opcode_name[677:682], 127: _Opcode_name[696:701],
128: _Opcode_name[682:688], 128: _Opcode_name[701:707],
129: _Opcode_name[688:694], 129: _Opcode_name[707:713],
130: _Opcode_name[694:700], 130: _Opcode_name[713:719],
131: _Opcode_name[700:706], 131: _Opcode_name[719:725],
132: _Opcode_name[706:712], 132: _Opcode_name[725:731],
133: _Opcode_name[712:718], 133: _Opcode_name[731:737],
134: _Opcode_name[718:724], 134: _Opcode_name[737:743],
135: _Opcode_name[724:729], 135: _Opcode_name[743:748],
136: _Opcode_name[729:738], 136: _Opcode_name[748:757],
137: _Opcode_name[738:744], 137: _Opcode_name[757:763],
139: _Opcode_name[744:747], 139: _Opcode_name[763:766],
140: _Opcode_name[747:753], 140: _Opcode_name[766:772],
141: _Opcode_name[753:757], 141: _Opcode_name[772:776],
142: _Opcode_name[757:762], 142: _Opcode_name[776:781],
144: _Opcode_name[762:768], 144: _Opcode_name[781:787],
145: _Opcode_name[768:771], 145: _Opcode_name[787:790],
146: _Opcode_name[771:773], 146: _Opcode_name[790:792],
147: _Opcode_name[773:776], 147: _Opcode_name[792:795],
151: _Opcode_name[776:781], 151: _Opcode_name[795:800],
152: _Opcode_name[781:789], 152: _Opcode_name[800:808],
153: _Opcode_name[789:793], 153: _Opcode_name[808:812],
154: _Opcode_name[793:796], 154: _Opcode_name[812:815],
155: _Opcode_name[796:802], 155: _Opcode_name[815:821],
156: _Opcode_name[802:805], 156: _Opcode_name[821:824],
157: _Opcode_name[805:808], 157: _Opcode_name[824:827],
158: _Opcode_name[808:811], 158: _Opcode_name[827:830],
159: _Opcode_name[811:814], 159: _Opcode_name[830:833],
160: _Opcode_name[814:817], 160: _Opcode_name[833:836],
161: _Opcode_name[817:820], 161: _Opcode_name[836:839],
162: _Opcode_name[820:823], 162: _Opcode_name[839:842],
168: _Opcode_name[823:826], 168: _Opcode_name[842:845],
169: _Opcode_name[826:829], 169: _Opcode_name[845:848],
170: _Opcode_name[829:832], 170: _Opcode_name[848:851],
171: _Opcode_name[832:839], 171: _Opcode_name[851:858],
172: _Opcode_name[839:845], 172: _Opcode_name[858:864],
177: _Opcode_name[845:847], 177: _Opcode_name[864:866],
179: _Opcode_name[847:855], 179: _Opcode_name[866:874],
180: _Opcode_name[855:866], 180: _Opcode_name[874:885],
181: _Opcode_name[866:868], 181: _Opcode_name[885:887],
182: _Opcode_name[868:871], 182: _Opcode_name[887:890],
183: _Opcode_name[871:873], 183: _Opcode_name[890:892],
184: _Opcode_name[873:876], 184: _Opcode_name[892:895],
185: _Opcode_name[876:879], 185: _Opcode_name[895:898],
186: _Opcode_name[879:882], 186: _Opcode_name[898:901],
187: _Opcode_name[882:888], 187: _Opcode_name[901:907],
192: _Opcode_name[888:892], 192: _Opcode_name[907:911],
193: _Opcode_name[892:898], 193: _Opcode_name[911:917],
194: _Opcode_name[898:907], 194: _Opcode_name[917:926],
195: _Opcode_name[907:915], 195: _Opcode_name[926:934],
196: _Opcode_name[915:924], 196: _Opcode_name[934:944],
197: _Opcode_name[924:934], 197: _Opcode_name[944:954],
198: _Opcode_name[934:943], 198: _Opcode_name[954:963],
200: _Opcode_name[943:949], 200: _Opcode_name[963:969],
202: _Opcode_name[949:953], 202: _Opcode_name[969:973],
203: _Opcode_name[953:959], 203: _Opcode_name[973:979],
204: _Opcode_name[959:963], 204: _Opcode_name[979:983],
205: _Opcode_name[963:969], 205: _Opcode_name[983:989],
206: _Opcode_name[969:977], 206: _Opcode_name[989:997],
207: _Opcode_name[977:983], 207: _Opcode_name[997:1003],
208: _Opcode_name[983:990], 208: _Opcode_name[1003:1010],
209: _Opcode_name[990:1002], 209: _Opcode_name[1010:1022],
210: _Opcode_name[1002:1008], 210: _Opcode_name[1022:1028],
211: _Opcode_name[1008:1018], 211: _Opcode_name[1028:1038],
216: _Opcode_name[1018:1024], 216: _Opcode_name[1038:1044],
217: _Opcode_name[1024:1030], 217: _Opcode_name[1044:1050],
219: _Opcode_name[1030:1037], 219: _Opcode_name[1050:1057],
} }
func (i Opcode) String() string { func (i Opcode) String() string {