avm2: reorder opcodes to be alphabetical

This commit is contained in:
Chris Midgley 2021-09-14 09:49:23 +01:00 committed by Mike Welsh
parent 818bf0809d
commit d52a350b9b
2 changed files with 9 additions and 9 deletions

View File

@ -25,11 +25,11 @@ pub enum OpCode {
ConstructProp = 0x4a, ConstructProp = 0x4a,
ConstructSuper = 0x49, ConstructSuper = 0x49,
ConvertB = 0x76, ConvertB = 0x76,
ConvertI = 0x73,
ConvertD = 0x75, ConvertD = 0x75,
ConvertI = 0x73,
ConvertO = 0x77, ConvertO = 0x77,
ConvertU = 0x74,
ConvertS = 0x70, ConvertS = 0x70,
ConvertU = 0x74,
Debug = 0xef, Debug = 0xef,
DebugFile = 0xf1, DebugFile = 0xf1,
DebugLine = 0xf0, DebugLine = 0xf0,
@ -70,11 +70,11 @@ pub enum OpCode {
IfGt = 0x17, IfGt = 0x17,
IfLe = 0x16, IfLe = 0x16,
IfLt = 0x15, IfLt = 0x15,
IfNe = 0x14,
IfNge = 0x0f, IfNge = 0x0f,
IfNgt = 0x0e, IfNgt = 0x0e,
IfNle = 0x0d, IfNle = 0x0d,
IfNlt = 0x0c, IfNlt = 0x0c,
IfNe = 0x14,
IfStrictEq = 0x19, IfStrictEq = 0x19,
IfStrictNe = 0x1a, IfStrictNe = 0x1a,
IfTrue = 0x11, IfTrue = 0x11,
@ -133,12 +133,12 @@ pub enum OpCode {
ReturnValue = 0x48, ReturnValue = 0x48,
ReturnVoid = 0x47, ReturnVoid = 0x47,
RShift = 0xa6, RShift = 0xa6,
SetGlobalSlot = 0x6f,
SetLocal = 0x63, SetLocal = 0x63,
SetLocal0 = 0xd4, SetLocal0 = 0xd4,
SetLocal1 = 0xd5, SetLocal1 = 0xd5,
SetLocal2 = 0xd6, SetLocal2 = 0xd6,
SetLocal3 = 0xd7, SetLocal3 = 0xd7,
SetGlobalSlot = 0x6f,
SetProperty = 0x61, SetProperty = 0x61,
SetSlot = 0x6d, SetSlot = 0x6d,
SetSuper = 0x05, SetSuper = 0x05,

View File

@ -384,6 +384,9 @@ pub enum Op {
IfLt { IfLt {
offset: i32, offset: i32,
}, },
IfNe {
offset: i32,
},
IfNge { IfNge {
offset: i32, offset: i32,
}, },
@ -396,9 +399,6 @@ pub enum Op {
IfNlt { IfNlt {
offset: i32, offset: i32,
}, },
IfNe {
offset: i32,
},
IfStrictEq { IfStrictEq {
offset: i32, offset: i32,
}, },
@ -502,10 +502,10 @@ pub enum Op {
ReturnValue, ReturnValue,
ReturnVoid, ReturnVoid,
RShift, RShift,
SetLocal { SetGlobalSlot {
index: u32, index: u32,
}, },
SetGlobalSlot { SetLocal {
index: u32, index: u32,
}, },
SetProperty { SetProperty {