opcode: swap ROT and OLDPUSH1

Because of how stringer generates String() method, the first of them
will be used as the result.
This commit is contained in:
Evgenii Stratonikov 2020-05-20 15:52:24 +03:00
parent 646c247b31
commit 61b1722745
2 changed files with 116 additions and 116 deletions

View file

@ -86,8 +86,8 @@ const (
PICK Opcode = 0x4D PICK Opcode = 0x4D
TUCK Opcode = 0x4E TUCK Opcode = 0x4E
SWAP Opcode = 0x50 SWAP Opcode = 0x50
OLDPUSH1 Opcode = 0x51 // FIXME remove #927
ROT Opcode = 0x51 ROT Opcode = 0x51
OLDPUSH1 Opcode = 0x51 // FIXME remove #927
ROLL Opcode = 0x52 ROLL Opcode = 0x52
REVERSE3 Opcode = 0x53 REVERSE3 Opcode = 0x53
REVERSE4 Opcode = 0x54 REVERSE4 Opcode = 0x54

View file

@ -76,8 +76,8 @@ func _() {
_ = x[PICK-77] _ = x[PICK-77]
_ = x[TUCK-78] _ = x[TUCK-78]
_ = x[SWAP-80] _ = x[SWAP-80]
_ = x[OLDPUSH1-81]
_ = x[ROT-81] _ = x[ROT-81]
_ = x[OLDPUSH1-81]
_ = x[ROLL-82] _ = x[ROLL-82]
_ = x[REVERSE3-83] _ = x[REVERSE3-83]
_ = x[REVERSE4-84] _ = x[REVERSE4-84]
@ -192,7 +192,7 @@ func _() {
_ = x[CONVERT-219] _ = x[CONVERT-219]
} }
const _Opcode_name = "PUSHINT8PUSHINT16PUSHINT32PUSHINT64PUSHINT128PUSHINT256PUSHAPUSHNULLPUSHDATA1PUSHDATA2PUSHDATA4PUSHM1PUSH0PUSH1PUSH2PUSH3PUSH4PUSH5PUSH6PUSH7PUSH8PUSH9PUSH10PUSH11PUSH12PUSH13PUSH14PUSH15PUSH16NOPJMPJMP_LJMPIFJMPIF_LJMPIFNOTJMPIFNOT_LJMPEQJMPEQ_LJMPNEJMPNE_LJMPGTJMPGT_LJMPGEJMPGE_LJMPLTJMPLT_LJMPLEJMPLE_LCALLCALL_LCALLAABORTASSERTTHROWRETSYSCALLDEPTHDROPNIPXDROPCLEARDUPOVERPICKTUCKSWAPFIXME remove #927ROLLREVERSE3REVERSE4REVERSENINITSSLOTINITSLOTLDSFLD0LDSFLD1LDSFLD2LDSFLD3LDSFLD4LDSFLD5LDSFLD6LDSFLDSTSFLD0STSFLD1STSFLD2STSFLD3STSFLD4STSFLD5STSFLD6STSFLDLDLOC0LDLOC1LDLOC2LDLOC3LDLOC4LDLOC5LDLOC6LDLOCSTLOC0STLOC1STLOC2STLOC3STLOC4STLOC5STLOC6STLOCLDARG0LDARG1LDARG2LDARG3LDARG4LDARG5LDARG6LDARGSTARG0STARG1STARG2STARG3STARG4STARG5STARG6STARGNEWBUFFERMEMCPYCATSUBSTRLEFTRIGHTINVERTANDORXOREQUALNOTEQUALSIGNABSNEGATEINCDECADDSUBMULDIVMODSHLSHRNOTBOOLANDBOOLORNZNUMEQUALNUMNOTEQUALLTLTEGTGTEMINMAXWITHINPACKUNPACKNEWARRAY0NEWARRAYNEWARRAY_TNEWSTRUCT0NEWSTRUCTNEWMAPSIZEHASKEYKEYSVALUESPICKITEMAPPENDSETITEMREVERSEITEMSREMOVECLEARITEMSISNULLISTYPECONVERT" const _Opcode_name = "PUSHINT8PUSHINT16PUSHINT32PUSHINT64PUSHINT128PUSHINT256PUSHAPUSHNULLPUSHDATA1PUSHDATA2PUSHDATA4PUSHM1PUSH0PUSH1PUSH2PUSH3PUSH4PUSH5PUSH6PUSH7PUSH8PUSH9PUSH10PUSH11PUSH12PUSH13PUSH14PUSH15PUSH16NOPJMPJMP_LJMPIFJMPIF_LJMPIFNOTJMPIFNOT_LJMPEQJMPEQ_LJMPNEJMPNE_LJMPGTJMPGT_LJMPGEJMPGE_LJMPLTJMPLT_LJMPLEJMPLE_LCALLCALL_LCALLAABORTASSERTTHROWRETSYSCALLDEPTHDROPNIPXDROPCLEARDUPOVERPICKTUCKSWAPROTROLLREVERSE3REVERSE4REVERSENINITSSLOTINITSLOTLDSFLD0LDSFLD1LDSFLD2LDSFLD3LDSFLD4LDSFLD5LDSFLD6LDSFLDSTSFLD0STSFLD1STSFLD2STSFLD3STSFLD4STSFLD5STSFLD6STSFLDLDLOC0LDLOC1LDLOC2LDLOC3LDLOC4LDLOC5LDLOC6LDLOCSTLOC0STLOC1STLOC2STLOC3STLOC4STLOC5STLOC6STLOCLDARG0LDARG1LDARG2LDARG3LDARG4LDARG5LDARG6LDARGSTARG0STARG1STARG2STARG3STARG4STARG5STARG6STARGNEWBUFFERMEMCPYCATSUBSTRLEFTRIGHTINVERTANDORXOREQUALNOTEQUALSIGNABSNEGATEINCDECADDSUBMULDIVMODSHLSHRNOTBOOLANDBOOLORNZNUMEQUALNUMNOTEQUALLTLTEGTGTEMINMAXWITHINPACKUNPACKNEWARRAY0NEWARRAYNEWARRAY_TNEWSTRUCT0NEWSTRUCTNEWMAPSIZEHASKEYKEYSVALUESPICKITEMAPPENDSETITEMREVERSEITEMSREMOVECLEARITEMSISNULLISTYPECONVERT"
var _Opcode_map = map[Opcode]string{ var _Opcode_map = map[Opcode]string{
0: _Opcode_name[0:8], 0: _Opcode_name[0:8],
@ -261,119 +261,119 @@ var _Opcode_map = map[Opcode]string{
77: _Opcode_name[376:380], 77: _Opcode_name[376:380],
78: _Opcode_name[380:384], 78: _Opcode_name[380:384],
80: _Opcode_name[384:388], 80: _Opcode_name[384:388],
81: _Opcode_name[388:405], 81: _Opcode_name[388:391],
82: _Opcode_name[405:409], 82: _Opcode_name[391:395],
83: _Opcode_name[409:417], 83: _Opcode_name[395:403],
84: _Opcode_name[417:425], 84: _Opcode_name[403:411],
85: _Opcode_name[425:433], 85: _Opcode_name[411:419],
86: _Opcode_name[433:442], 86: _Opcode_name[419:428],
87: _Opcode_name[442:450], 87: _Opcode_name[428:436],
88: _Opcode_name[450:457], 88: _Opcode_name[436:443],
89: _Opcode_name[457:464], 89: _Opcode_name[443:450],
90: _Opcode_name[464:471], 90: _Opcode_name[450:457],
91: _Opcode_name[471:478], 91: _Opcode_name[457:464],
92: _Opcode_name[478:485], 92: _Opcode_name[464:471],
93: _Opcode_name[485:492], 93: _Opcode_name[471:478],
94: _Opcode_name[492:499], 94: _Opcode_name[478:485],
95: _Opcode_name[499:505], 95: _Opcode_name[485:491],
96: _Opcode_name[505:512], 96: _Opcode_name[491:498],
97: _Opcode_name[512:519], 97: _Opcode_name[498:505],
98: _Opcode_name[519:526], 98: _Opcode_name[505:512],
99: _Opcode_name[526:533], 99: _Opcode_name[512:519],
100: _Opcode_name[533:540], 100: _Opcode_name[519:526],
101: _Opcode_name[540:547], 101: _Opcode_name[526:533],
102: _Opcode_name[547:554], 102: _Opcode_name[533:540],
103: _Opcode_name[554:560], 103: _Opcode_name[540:546],
104: _Opcode_name[560:566], 104: _Opcode_name[546:552],
105: _Opcode_name[566:572], 105: _Opcode_name[552:558],
106: _Opcode_name[572:578], 106: _Opcode_name[558:564],
107: _Opcode_name[578:584], 107: _Opcode_name[564:570],
108: _Opcode_name[584:590], 108: _Opcode_name[570:576],
109: _Opcode_name[590:596], 109: _Opcode_name[576:582],
110: _Opcode_name[596:602], 110: _Opcode_name[582:588],
111: _Opcode_name[602:607], 111: _Opcode_name[588:593],
112: _Opcode_name[607:613], 112: _Opcode_name[593:599],
113: _Opcode_name[613:619], 113: _Opcode_name[599:605],
114: _Opcode_name[619:625], 114: _Opcode_name[605:611],
115: _Opcode_name[625:631], 115: _Opcode_name[611:617],
116: _Opcode_name[631:637], 116: _Opcode_name[617:623],
117: _Opcode_name[637:643], 117: _Opcode_name[623:629],
118: _Opcode_name[643:649], 118: _Opcode_name[629:635],
119: _Opcode_name[649:654], 119: _Opcode_name[635:640],
120: _Opcode_name[654:660], 120: _Opcode_name[640:646],
121: _Opcode_name[660:666], 121: _Opcode_name[646:652],
122: _Opcode_name[666:672], 122: _Opcode_name[652:658],
123: _Opcode_name[672:678], 123: _Opcode_name[658:664],
124: _Opcode_name[678:684], 124: _Opcode_name[664:670],
125: _Opcode_name[684:690], 125: _Opcode_name[670:676],
126: _Opcode_name[690:696], 126: _Opcode_name[676:682],
127: _Opcode_name[696:701], 127: _Opcode_name[682:687],
128: _Opcode_name[701:707], 128: _Opcode_name[687:693],
129: _Opcode_name[707:713], 129: _Opcode_name[693:699],
130: _Opcode_name[713:719], 130: _Opcode_name[699:705],
131: _Opcode_name[719:725], 131: _Opcode_name[705:711],
132: _Opcode_name[725:731], 132: _Opcode_name[711:717],
133: _Opcode_name[731:737], 133: _Opcode_name[717:723],
134: _Opcode_name[737:743], 134: _Opcode_name[723:729],
135: _Opcode_name[743:748], 135: _Opcode_name[729:734],
136: _Opcode_name[748:757], 136: _Opcode_name[734:743],
137: _Opcode_name[757:763], 137: _Opcode_name[743:749],
139: _Opcode_name[763:766], 139: _Opcode_name[749:752],
140: _Opcode_name[766:772], 140: _Opcode_name[752:758],
141: _Opcode_name[772:776], 141: _Opcode_name[758:762],
142: _Opcode_name[776:781], 142: _Opcode_name[762:767],
144: _Opcode_name[781:787], 144: _Opcode_name[767:773],
145: _Opcode_name[787:790], 145: _Opcode_name[773:776],
146: _Opcode_name[790:792], 146: _Opcode_name[776:778],
147: _Opcode_name[792:795], 147: _Opcode_name[778:781],
151: _Opcode_name[795:800], 151: _Opcode_name[781:786],
152: _Opcode_name[800:808], 152: _Opcode_name[786:794],
153: _Opcode_name[808:812], 153: _Opcode_name[794:798],
154: _Opcode_name[812:815], 154: _Opcode_name[798:801],
155: _Opcode_name[815:821], 155: _Opcode_name[801:807],
156: _Opcode_name[821:824], 156: _Opcode_name[807:810],
157: _Opcode_name[824:827], 157: _Opcode_name[810:813],
158: _Opcode_name[827:830], 158: _Opcode_name[813:816],
159: _Opcode_name[830:833], 159: _Opcode_name[816:819],
160: _Opcode_name[833:836], 160: _Opcode_name[819:822],
161: _Opcode_name[836:839], 161: _Opcode_name[822:825],
162: _Opcode_name[839:842], 162: _Opcode_name[825:828],
168: _Opcode_name[842:845], 168: _Opcode_name[828:831],
169: _Opcode_name[845:848], 169: _Opcode_name[831:834],
170: _Opcode_name[848:851], 170: _Opcode_name[834:837],
171: _Opcode_name[851:858], 171: _Opcode_name[837:844],
172: _Opcode_name[858:864], 172: _Opcode_name[844:850],
177: _Opcode_name[864:866], 177: _Opcode_name[850:852],
179: _Opcode_name[866:874], 179: _Opcode_name[852:860],
180: _Opcode_name[874:885], 180: _Opcode_name[860:871],
181: _Opcode_name[885:887], 181: _Opcode_name[871:873],
182: _Opcode_name[887:890], 182: _Opcode_name[873:876],
183: _Opcode_name[890:892], 183: _Opcode_name[876:878],
184: _Opcode_name[892:895], 184: _Opcode_name[878:881],
185: _Opcode_name[895:898], 185: _Opcode_name[881:884],
186: _Opcode_name[898:901], 186: _Opcode_name[884:887],
187: _Opcode_name[901:907], 187: _Opcode_name[887:893],
192: _Opcode_name[907:911], 192: _Opcode_name[893:897],
193: _Opcode_name[911:917], 193: _Opcode_name[897:903],
194: _Opcode_name[917:926], 194: _Opcode_name[903:912],
195: _Opcode_name[926:934], 195: _Opcode_name[912:920],
196: _Opcode_name[934:944], 196: _Opcode_name[920:930],
197: _Opcode_name[944:954], 197: _Opcode_name[930:940],
198: _Opcode_name[954:963], 198: _Opcode_name[940:949],
200: _Opcode_name[963:969], 200: _Opcode_name[949:955],
202: _Opcode_name[969:973], 202: _Opcode_name[955:959],
203: _Opcode_name[973:979], 203: _Opcode_name[959:965],
204: _Opcode_name[979:983], 204: _Opcode_name[965:969],
205: _Opcode_name[983:989], 205: _Opcode_name[969:975],
206: _Opcode_name[989:997], 206: _Opcode_name[975:983],
207: _Opcode_name[997:1003], 207: _Opcode_name[983:989],
208: _Opcode_name[1003:1010], 208: _Opcode_name[989:996],
209: _Opcode_name[1010:1022], 209: _Opcode_name[996:1008],
210: _Opcode_name[1022:1028], 210: _Opcode_name[1008:1014],
211: _Opcode_name[1028:1038], 211: _Opcode_name[1014:1024],
216: _Opcode_name[1038:1044], 216: _Opcode_name[1024:1030],
217: _Opcode_name[1044:1050], 217: _Opcode_name[1030:1036],
219: _Opcode_name[1050:1057], 219: _Opcode_name[1036:1043],
} }
func (i Opcode) String() string { func (i Opcode) String() string {