-
-
Save kumpera/0a30e8df923d5abf46cdbbcffecd653d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace SimpleJit.CIL | |
{ | |
public enum Opcode : byte | |
{ | |
Nop = 0x00, | |
Break = 0x01, | |
Ldarg0 = 0x02, | |
Ldarg1 = 0x03, | |
Ldarg2 = 0x04, | |
Ldarg3 = 0x05, | |
Ldloc0 = 0x06, | |
Ldloc1 = 0x07, | |
Ldloc2 = 0x08, | |
Ldloc3 = 0x09, | |
Stloc0 = 0x0a, | |
Stloc1 = 0x0b, | |
Stloc2 = 0x0c, | |
Stloc3 = 0x0d, | |
LdargS = 0x0e, | |
LdargaS = 0x0f, | |
StargS = 0x10, | |
LdlocS = 0x11, | |
LdlocaS = 0x12, | |
StlocS = 0x13, | |
Ldnull = 0x14, | |
LdcI4M1 = 0x15, | |
LdcI4_0 = 0x16, | |
LdcI4_1 = 0x17, | |
LdcI4_2 = 0x18, | |
LdcI4_3 = 0x19, | |
LdcI4_4 = 0x1a, | |
LdcI4_5 = 0x1b, | |
LdcI4_6 = 0x1c, | |
LdcI4_7 = 0x1d, | |
LdcI4_8 = 0x1e, | |
LdcI4S = 0x1f, | |
LdcI4 = 0x20, | |
LdcI8 = 0x21, | |
LdcR4 = 0x22, | |
LdcR8 = 0x23, | |
Dup = 0x25, | |
Pop = 0x26, | |
Jmp = 0x27, | |
Call = 0x28, | |
Calli = 0x29, | |
Ret = 0x2a, | |
BrS = 0x2b, | |
BrfalseS = 0x2c, | |
BrtrueS = 0x2d, | |
BeqS = 0x2e, | |
BgeS = 0x2f, | |
BgtS = 0x30, | |
BleS = 0x31, | |
BltS = 0x32, | |
BneUnS = 0x33, | |
BgeUnS = 0x34, | |
BgtUnS = 0x35, | |
BleUnS = 0x36, | |
BltUnS = 0x37, | |
Br = 0x38, | |
Brfalse = 0x39, | |
Brtrue = 0x3a, | |
Beq = 0x3b, | |
Bge = 0x3c, | |
Bgt = 0x3d, | |
Ble = 0x3e, | |
Blt = 0x3f, | |
BneUn = 0x40, | |
BgeUn = 0x41, | |
BgtUn = 0x42, | |
BleUn = 0x43, | |
BltUn = 0x44, | |
Switch = 0x45, | |
LdindI1 = 0x46, | |
LdindU1 = 0x47, | |
LdindI2 = 0x48, | |
LdindU2 = 0x49, | |
LdindI4 = 0x4a, | |
LdindU4 = 0x4b, | |
LdindI8 = 0x4c, | |
LdindI = 0x4d, | |
LdindR4 = 0x4e, | |
LdindR8 = 0x4f, | |
LdindRef = 0x50, | |
StindRef = 0x51, | |
StindI1 = 0x52, | |
StindI2 = 0x53, | |
StindI4 = 0x54, | |
StindI8 = 0x55, | |
StindR4 = 0x56, | |
StindR8 = 0x57, | |
Add = 0x58, | |
Sub = 0x59, | |
Mul = 0x5a, | |
Div = 0x5b, | |
DivUn = 0x5c, | |
Rem = 0x5d, | |
RemUn = 0x5e, | |
And = 0x5f, | |
Or = 0x60, | |
Xor = 0x61, | |
Shl = 0x62, | |
Shr = 0x63, | |
ShrUn = 0x64, | |
Neg = 0x65, | |
Not = 0x66, | |
ConvI1 = 0x67, | |
ConvI2 = 0x68, | |
ConvI4 = 0x69, | |
ConvI8 = 0x6a, | |
ConvR4 = 0x6b, | |
ConvR8 = 0x6c, | |
ConvU4 = 0x6d, | |
ConvU8 = 0x6e, | |
Callvirt = 0x6f, | |
Cpobj = 0x70, | |
Ldobj = 0x71, | |
Ldstr = 0x72, | |
Newobj = 0x73, | |
Castclass = 0x74, | |
Isinst = 0x75, | |
ConvRUn = 0x76, | |
Unbox = 0x79, | |
Throw = 0x7a, | |
Ldfld = 0x7b, | |
Ldflda = 0x7c, | |
Stfld = 0x7d, | |
Ldsfld = 0x7e, | |
Ldsflda = 0x7f, | |
Stsfld = 0x80, | |
Stobj = 0x81, | |
ConvOvfI1Un = 0x82, | |
ConvOvfI2Un = 0x83, | |
ConvOvfI4Un = 0x84, | |
ConvOvfI8Un = 0x85, | |
ConvOvfU1Un = 0x86, | |
ConvOvfU2Un = 0x87, | |
ConvOvfU4Un = 0x88, | |
ConvOvfU8Un = 0x89, | |
ConvOvfIUn = 0x8a, | |
ConvOvfUUn = 0x8b, | |
Box = 0x8c, | |
Newarr = 0x8d, | |
Ldlen = 0x8e, | |
Ldelema = 0x8f, | |
LdelemI1 = 0x90, | |
LdelemU1 = 0x91, | |
LdelemI2 = 0x92, | |
LdelemU2 = 0x93, | |
LdelemI4 = 0x94, | |
LdelemU4 = 0x95, | |
LdelemI8 = 0x96, | |
LdelemI = 0x97, | |
LdelemR4 = 0x98, | |
LdelemR8 = 0x99, | |
LdelemRef = 0x9a, | |
StelemI = 0x9b, | |
StelemI1 = 0x9c, | |
StelemI2 = 0x9d, | |
StelemI4 = 0x9e, | |
StelemI8 = 0x9f, | |
StelemR4 = 0xa0, | |
StelemR8 = 0xa1, | |
StelemRef = 0xa2, | |
LdelemAny = 0xa3, | |
StelemAny = 0xa4, | |
UnboxAny = 0xa5, | |
ConvOvfI1 = 0xb3, | |
ConvOvfU1 = 0xb4, | |
ConvOvfI2 = 0xb5, | |
ConvOvfU2 = 0xb6, | |
ConvOvfI4 = 0xb7, | |
ConvOvfU4 = 0xb8, | |
ConvOvfI8 = 0xb9, | |
ConvOvfU8 = 0xba, | |
Refanyval = 0xc2, | |
Ckfinite = 0xc3, | |
Mkrefany = 0xc6, | |
Ldtoken = 0xd0, | |
ConvU2 = 0xd1, | |
ConvU1 = 0xd2, | |
ConvI = 0xd3, | |
ConvOvfI = 0xd4, | |
ConvOvfU = 0xd5, | |
AddOvf = 0xd6, | |
AddOvfUn = 0xd7, | |
MulOvf = 0xd8, | |
MulOvfUn = 0xd9, | |
SubOvf = 0xda, | |
SubOvfUn = 0xdb, | |
Endfinally = 0xdc, | |
Leave = 0xdd, | |
LeaveS = 0xde, | |
StindI = 0xdf, | |
ConvU = 0xe0, | |
ExtendedPrefix = 0xFE | |
} | |
public enum ExtendedOpcode : byte | |
{ | |
Arglist = 0x00, | |
Ceq = 0x01, | |
Cgt = 0x02, | |
CgtUn = 0x03, | |
Clt = 0x04, | |
CltUn = 0x05, | |
Ldftn = 0x06, | |
Ldvirtftn = 0x07, | |
Ldarg = 0x09, | |
Ldarga = 0x0a, | |
Starg = 0x0b, | |
Ldloc = 0x0c, | |
Ldloca = 0x0d, | |
Stloc = 0x0e, | |
Localloc = 0x0f, | |
Endfilter = 0x11, | |
Unaligned = 0x12, | |
Volatile = 0x13, | |
Tail = 0x14, | |
Initobj = 0x15, | |
Constrained = 0x16, | |
Cpblk = 0x17, | |
Initblk = 0x18, | |
No = 0x19, | |
Rethrow = 0x1a, | |
Sizeof = 0x1c, | |
Refanytype = 0x1d, | |
Readonly = 0x1e, | |
} | |
public static class TraitsLookup { | |
private static OpcodeTraits[] traits; | |
private static OpcodeTraits[] extendedTraits; | |
public static void Decode (byte opcode, out OpcodeTraits res) { | |
if (opcode > 224) | |
res = new OpcodeTraits (OpcodeFlags.Invalid, null, opcode, false, PopBehavior.Pop0, PushBehavior.Push0); | |
else | |
res = traits [opcode]; | |
} | |
public static void DecodeExtended (byte opcode, out OpcodeTraits res) { | |
if (opcode > 30) | |
res = new OpcodeTraits (OpcodeFlags.Invalid, null, opcode, true, PopBehavior.Pop0, PushBehavior.Push0); | |
else | |
res = extendedTraits [opcode]; | |
} | |
static TraitsLookup() { | |
traits = new OpcodeTraits [225]; | |
extendedTraits = new OpcodeTraits [31]; | |
traits [0x00] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Nop", 0x00, false, PopBehavior.Pop0, PushBehavior.Push0 ); | |
traits [0x01] = new OpcodeTraits (OpcodeFlags.Break | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Break", 0x01, false, PopBehavior.Pop0, PushBehavior.Push0 ); | |
traits [0x02] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldarg0", 0x02, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x03] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldarg1", 0x03, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x04] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldarg2", 0x04, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x05] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldarg3", 0x05, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x06] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldloc0", 0x06, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x07] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldloc1", 0x07, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x08] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldloc2", 0x08, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x09] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Ldloc3", 0x09, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x0a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Stloc0", 0x0a, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x0b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Stloc1", 0x0b, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x0c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Stloc2", 0x0c, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x0d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "Stloc3", 0x0d, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x0e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "LdargS", 0x0e, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x0f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "LdargaS", 0x0f, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x10] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "StargS", 0x10, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x11] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "LdlocS", 0x11, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x12] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "LdlocaS", 0x12, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x13] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "StlocS", 0x13, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x14] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Ldnull", 0x14, false, PopBehavior.Pop0, PushBehavior.Pushref ); | |
traits [0x15] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4M1", 0x15, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x16] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_0", 0x16, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x17] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_1", 0x17, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x18] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_2", 0x18, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x19] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_3", 0x19, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x1a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_4", 0x1a, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x1b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_5", 0x1b, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x1c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_6", 0x1c, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x1d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_7", 0x1d, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x1e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.NoOperand, "LdcI4_8", 0x1e, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x1f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "LdcI4S", 0x1f, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x20] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "LdcI4", 0x20, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x21] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize8, "LdcI8", 0x21, false, PopBehavior.Pop0, PushBehavior.Pushi8 ); | |
traits [0x22] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "LdcR4", 0x22, false, PopBehavior.Pop0, PushBehavior.Pushr4 ); | |
traits [0x23] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize8, "LdcR8", 0x23, false, PopBehavior.Pop0, PushBehavior.Pushr8 ); | |
traits [0x24] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0x24, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0x25] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Dup", 0x25, false, PopBehavior.Pop1, PushBehavior.Push1_push1 ); | |
traits [0x26] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Pop", 0x26, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x27] = new OpcodeTraits (OpcodeFlags.Call | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Jmp", 0x27, false, PopBehavior.Pop0, PushBehavior.Push0 ); | |
traits [0x28] = new OpcodeTraits (OpcodeFlags.Call | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Call", 0x28, false, PopBehavior.Varpop, PushBehavior.Varpush ); | |
traits [0x29] = new OpcodeTraits (OpcodeFlags.Call | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Calli", 0x29, false, PopBehavior.Varpop, PushBehavior.Varpush ); | |
traits [0x2a] = new OpcodeTraits (OpcodeFlags.Return | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Ret", 0x2a, false, PopBehavior.Varpop, PushBehavior.Push0 ); | |
traits [0x2b] = new OpcodeTraits (OpcodeFlags.Branch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BrS", 0x2b, false, PopBehavior.Pop0, PushBehavior.Push0 ); | |
traits [0x2c] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BrfalseS", 0x2c, false, PopBehavior.Popi, PushBehavior.Push0 ); | |
traits [0x2d] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BrtrueS", 0x2d, false, PopBehavior.Popi, PushBehavior.Push0 ); | |
traits [0x2e] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BeqS", 0x2e, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x2f] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BgeS", 0x2f, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x30] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BgtS", 0x30, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x31] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BleS", 0x31, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x32] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BltS", 0x32, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x33] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BneUnS", 0x33, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x34] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BgeUnS", 0x34, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x35] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BgtUnS", 0x35, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x36] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BleUnS", 0x36, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x37] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "BltUnS", 0x37, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x38] = new OpcodeTraits (OpcodeFlags.Branch | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Br", 0x38, false, PopBehavior.Pop0, PushBehavior.Push0 ); | |
traits [0x39] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Brfalse", 0x39, false, PopBehavior.Popi, PushBehavior.Push0 ); | |
traits [0x3a] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Brtrue", 0x3a, false, PopBehavior.Popi, PushBehavior.Push0 ); | |
traits [0x3b] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "Beq", 0x3b, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x3c] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "Bge", 0x3c, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x3d] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "Bgt", 0x3d, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x3e] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "Ble", 0x3e, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x3f] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "Blt", 0x3f, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x40] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "BneUn", 0x40, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x41] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "BgeUn", 0x41, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x42] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "BgtUn", 0x42, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x43] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "BleUn", 0x43, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x44] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Macro | OpcodeFlags.OperandSize4, "BltUn", 0x44, false, PopBehavior.Pop1_pop1, PushBehavior.Push0 ); | |
traits [0x45] = new OpcodeTraits (OpcodeFlags.CondBranch | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Switch", 0x45, false, PopBehavior.Popi, PushBehavior.Push0 ); | |
traits [0x46] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindI1", 0x46, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x47] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindU1", 0x47, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x48] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindI2", 0x48, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x49] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindU2", 0x49, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x4a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindI4", 0x4a, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x4b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindU4", 0x4b, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x4c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindI8", 0x4c, false, PopBehavior.Popi, PushBehavior.Pushi8 ); | |
traits [0x4d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindI", 0x4d, false, PopBehavior.Popi, PushBehavior.Pushi ); | |
traits [0x4e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindR4", 0x4e, false, PopBehavior.Popi, PushBehavior.Pushr4 ); | |
traits [0x4f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindR8", 0x4f, false, PopBehavior.Popi, PushBehavior.Pushr8 ); | |
traits [0x50] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "LdindRef", 0x50, false, PopBehavior.Popi, PushBehavior.Pushref ); | |
traits [0x51] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindRef", 0x51, false, PopBehavior.Popi_popi, PushBehavior.Push0 ); | |
traits [0x52] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindI1", 0x52, false, PopBehavior.Popi_popi, PushBehavior.Push0 ); | |
traits [0x53] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindI2", 0x53, false, PopBehavior.Popi_popi, PushBehavior.Push0 ); | |
traits [0x54] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindI4", 0x54, false, PopBehavior.Popi_popi, PushBehavior.Push0 ); | |
traits [0x55] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindI8", 0x55, false, PopBehavior.Popi_popi8, PushBehavior.Push0 ); | |
traits [0x56] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindR4", 0x56, false, PopBehavior.Popi_popr4, PushBehavior.Push0 ); | |
traits [0x57] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindR8", 0x57, false, PopBehavior.Popi_popr8, PushBehavior.Push0 ); | |
traits [0x58] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Add", 0x58, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x59] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Sub", 0x59, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x5a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Mul", 0x5a, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x5b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Div", 0x5b, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x5c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "DivUn", 0x5c, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x5d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Rem", 0x5d, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x5e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "RemUn", 0x5e, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x5f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "And", 0x5f, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x60] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Or", 0x60, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x61] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Xor", 0x61, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x62] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Shl", 0x62, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x63] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Shr", 0x63, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x64] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ShrUn", 0x64, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0x65] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Neg", 0x65, false, PopBehavior.Pop1, PushBehavior.Push1 ); | |
traits [0x66] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Not", 0x66, false, PopBehavior.Pop1, PushBehavior.Push1 ); | |
traits [0x67] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvI1", 0x67, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x68] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvI2", 0x68, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x69] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvI4", 0x69, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x6a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvI8", 0x6a, false, PopBehavior.Pop1, PushBehavior.Pushi8 ); | |
traits [0x6b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvR4", 0x6b, false, PopBehavior.Pop1, PushBehavior.Pushr4 ); | |
traits [0x6c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvR8", 0x6c, false, PopBehavior.Pop1, PushBehavior.Pushr8 ); | |
traits [0x6d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvU4", 0x6d, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x6e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvU8", 0x6e, false, PopBehavior.Pop1, PushBehavior.Pushi8 ); | |
traits [0x6f] = new OpcodeTraits (OpcodeFlags.Call | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Callvirt", 0x6f, false, PopBehavior.Varpop, PushBehavior.Varpush ); | |
traits [0x70] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Cpobj", 0x70, false, PopBehavior.Popi_popi, PushBehavior.Push0 ); | |
traits [0x71] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldobj", 0x71, false, PopBehavior.Popi, PushBehavior.Push1 ); | |
traits [0x72] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldstr", 0x72, false, PopBehavior.Pop0, PushBehavior.Pushref ); | |
traits [0x73] = new OpcodeTraits (OpcodeFlags.Call | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Newobj", 0x73, false, PopBehavior.Varpop, PushBehavior.Pushref ); | |
traits [0x74] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Castclass", 0x74, false, PopBehavior.Popref, PushBehavior.Pushref ); | |
traits [0x75] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Isinst", 0x75, false, PopBehavior.Popref, PushBehavior.Pushi ); | |
traits [0x76] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvRUn", 0x76, false, PopBehavior.Pop1, PushBehavior.Pushr8 ); | |
traits [0x77] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0x77, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0x78] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0x78, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0x79] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Unbox", 0x79, false, PopBehavior.Popref, PushBehavior.Pushi ); | |
traits [0x7a] = new OpcodeTraits (OpcodeFlags.Throw | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "Throw", 0x7a, false, PopBehavior.Popref, PushBehavior.Push0 ); | |
traits [0x7b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldfld", 0x7b, false, PopBehavior.Popref, PushBehavior.Push1 ); | |
traits [0x7c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldflda", 0x7c, false, PopBehavior.Popref, PushBehavior.Pushi ); | |
traits [0x7d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Stfld", 0x7d, false, PopBehavior.Popref_pop1, PushBehavior.Push0 ); | |
traits [0x7e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldsfld", 0x7e, false, PopBehavior.Pop0, PushBehavior.Push1 ); | |
traits [0x7f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldsflda", 0x7f, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0x80] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Stsfld", 0x80, false, PopBehavior.Pop1, PushBehavior.Push0 ); | |
traits [0x81] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Stobj", 0x81, false, PopBehavior.Popi_pop1, PushBehavior.Push0 ); | |
traits [0x82] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI1Un", 0x82, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x83] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI2Un", 0x83, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x84] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI4Un", 0x84, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x85] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI8Un", 0x85, false, PopBehavior.Pop1, PushBehavior.Pushi8 ); | |
traits [0x86] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU1Un", 0x86, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x87] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU2Un", 0x87, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x88] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU4Un", 0x88, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x89] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU8Un", 0x89, false, PopBehavior.Pop1, PushBehavior.Pushi8 ); | |
traits [0x8a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfIUn", 0x8a, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x8b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfUUn", 0x8b, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0x8c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Box", 0x8c, false, PopBehavior.Pop1, PushBehavior.Pushref ); | |
traits [0x8d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Newarr", 0x8d, false, PopBehavior.Popi, PushBehavior.Pushref ); | |
traits [0x8e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "Ldlen", 0x8e, false, PopBehavior.Popref, PushBehavior.Pushi ); | |
traits [0x8f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Ldelema", 0x8f, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x90] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemI1", 0x90, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x91] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemU1", 0x91, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x92] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemI2", 0x92, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x93] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemU2", 0x93, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x94] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemI4", 0x94, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x95] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemU4", 0x95, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x96] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemI8", 0x96, false, PopBehavior.Popref_popi, PushBehavior.Pushi8 ); | |
traits [0x97] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemI", 0x97, false, PopBehavior.Popref_popi, PushBehavior.Pushi ); | |
traits [0x98] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemR4", 0x98, false, PopBehavior.Popref_popi, PushBehavior.Pushr4 ); | |
traits [0x99] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemR8", 0x99, false, PopBehavior.Popref_popi, PushBehavior.Pushr8 ); | |
traits [0x9a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "LdelemRef", 0x9a, false, PopBehavior.Popref_popi, PushBehavior.Pushref ); | |
traits [0x9b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemI", 0x9b, false, PopBehavior.Popref_popi_popi, PushBehavior.Push0 ); | |
traits [0x9c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemI1", 0x9c, false, PopBehavior.Popref_popi_popi, PushBehavior.Push0 ); | |
traits [0x9d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemI2", 0x9d, false, PopBehavior.Popref_popi_popi, PushBehavior.Push0 ); | |
traits [0x9e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemI4", 0x9e, false, PopBehavior.Popref_popi_popi, PushBehavior.Push0 ); | |
traits [0x9f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemI8", 0x9f, false, PopBehavior.Popref_popi_popi8, PushBehavior.Push0 ); | |
traits [0xa0] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemR4", 0xa0, false, PopBehavior.Popref_popi_popr4, PushBehavior.Push0 ); | |
traits [0xa1] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemR8", 0xa1, false, PopBehavior.Popref_popi_popr8, PushBehavior.Push0 ); | |
traits [0xa2] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "StelemRef", 0xa2, false, PopBehavior.Popref_popi_popref, PushBehavior.Push0 ); | |
traits [0xa3] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "LdelemAny", 0xa3, false, PopBehavior.Popref_popi, PushBehavior.Push1 ); | |
traits [0xa4] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "StelemAny", 0xa4, false, PopBehavior.Popref_popi_popref, PushBehavior.Push0 ); | |
traits [0xa5] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "UnboxAny", 0xa5, false, PopBehavior.Popref, PushBehavior.Push1 ); | |
traits [0xa6] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xa6, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xa7] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xa7, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xa8] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xa8, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xa9] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xa9, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xaa] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xaa, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xab] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xab, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xac] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xac, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xad] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xad, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xae] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xae, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xaf] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xaf, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xb0] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xb0, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xb1] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xb1, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xb2] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xb2, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xb3] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI1", 0xb3, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xb4] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU1", 0xb4, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xb5] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI2", 0xb5, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xb6] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU2", 0xb6, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xb7] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI4", 0xb7, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xb8] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU4", 0xb8, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xb9] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI8", 0xb9, false, PopBehavior.Pop1, PushBehavior.Pushi8 ); | |
traits [0xba] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU8", 0xba, false, PopBehavior.Pop1, PushBehavior.Pushi8 ); | |
traits [0xbb] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xbb, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xbc] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xbc, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xbd] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xbd, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xbe] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xbe, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xbf] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xbf, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc0] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc0, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc1] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc1, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc2] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Refanyval", 0xc2, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xc3] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Ckfinite", 0xc3, false, PopBehavior.Pop1, PushBehavior.Pushr8 ); | |
traits [0xc4] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc4, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc5] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc5, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc6] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Mkrefany", 0xc6, false, PopBehavior.Popi, PushBehavior.Push1 ); | |
traits [0xc7] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc7, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc8] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc8, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xc9] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xc9, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xca] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xca, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xcb] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xcb, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xcc] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xcc, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xcd] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xcd, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xce] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xce, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xcf] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0xcf, false, PopBehavior.Pop0, PushBehavior.Push0); | |
traits [0xd0] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Ldtoken", 0xd0, false, PopBehavior.Pop0, PushBehavior.Pushi ); | |
traits [0xd1] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvU2", 0xd1, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xd2] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvU1", 0xd2, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xd3] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvI", 0xd3, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xd4] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfI", 0xd4, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xd5] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvOvfU", 0xd5, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
traits [0xd6] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "AddOvf", 0xd6, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0xd7] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "AddOvfUn", 0xd7, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0xd8] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "MulOvf", 0xd8, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0xd9] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "MulOvfUn", 0xd9, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0xda] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "SubOvf", 0xda, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0xdb] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "SubOvfUn", 0xdb, false, PopBehavior.Pop1_pop1, PushBehavior.Push1 ); | |
traits [0xdc] = new OpcodeTraits (OpcodeFlags.Return | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Endfinally", 0xdc, false, PopBehavior.Pop0, PushBehavior.Push0 ); | |
traits [0xdd] = new OpcodeTraits (OpcodeFlags.Branch | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Leave", 0xdd, false, PopBehavior.PopAll, PushBehavior.Push0 ); | |
traits [0xde] = new OpcodeTraits (OpcodeFlags.Branch | OpcodeFlags.Macro | OpcodeFlags.OperandSize1, "LeaveS", 0xde, false, PopBehavior.PopAll, PushBehavior.Push0 ); | |
traits [0xdf] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "StindI", 0xdf, false, PopBehavior.Popi_popi, PushBehavior.Push0 ); | |
traits [0xe0] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "ConvU", 0xe0, false, PopBehavior.Pop1, PushBehavior.Pushi ); | |
extendedTraits [0x00] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Arglist", 0x00, true, PopBehavior.Pop0, PushBehavior.Pushi ); | |
extendedTraits [0x01] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Ceq", 0x01, true, PopBehavior.Pop1_pop1, PushBehavior.Pushi ); | |
extendedTraits [0x02] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Cgt", 0x02, true, PopBehavior.Pop1_pop1, PushBehavior.Pushi ); | |
extendedTraits [0x03] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "CgtUn", 0x03, true, PopBehavior.Pop1_pop1, PushBehavior.Pushi ); | |
extendedTraits [0x04] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Clt", 0x04, true, PopBehavior.Pop1_pop1, PushBehavior.Pushi ); | |
extendedTraits [0x05] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "CltUn", 0x05, true, PopBehavior.Pop1_pop1, PushBehavior.Pushi ); | |
extendedTraits [0x06] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Ldftn", 0x06, true, PopBehavior.Pop0, PushBehavior.Pushi ); | |
extendedTraits [0x07] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Ldvirtftn", 0x07, true, PopBehavior.Popref, PushBehavior.Pushi ); | |
extendedTraits [0x8] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0x8, true, PopBehavior.Pop0, PushBehavior.Push0); | |
extendedTraits [0x09] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize2, "Ldarg", 0x09, true, PopBehavior.Pop0, PushBehavior.Push1 ); | |
extendedTraits [0x0a] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize2, "Ldarga", 0x0a, true, PopBehavior.Pop0, PushBehavior.Pushi ); | |
extendedTraits [0x0b] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize2, "Starg", 0x0b, true, PopBehavior.Pop1, PushBehavior.Push0 ); | |
extendedTraits [0x0c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Ldloc", 0x0c, true, PopBehavior.Pop0, PushBehavior.Push1 ); | |
extendedTraits [0x0d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Ldloca", 0x0d, true, PopBehavior.Pop0, PushBehavior.Pushi ); | |
extendedTraits [0x0e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Stloc", 0x0e, true, PopBehavior.Pop1, PushBehavior.Push0 ); | |
extendedTraits [0x0f] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Localloc", 0x0f, true, PopBehavior.Popi, PushBehavior.Pushi ); | |
extendedTraits [0x10] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0x10, true, PopBehavior.Pop0, PushBehavior.Push0); | |
extendedTraits [0x11] = new OpcodeTraits (OpcodeFlags.Return | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Endfilter", 0x11, true, PopBehavior.Popi, PushBehavior.Push0 ); | |
extendedTraits [0x12] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Prefix | OpcodeFlags.OperandSize1, "Unaligned", 0x12, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
extendedTraits [0x13] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Prefix | OpcodeFlags.NoOperand, "Volatile", 0x13, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
extendedTraits [0x14] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Prefix | OpcodeFlags.NoOperand, "Tail", 0x14, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
extendedTraits [0x15] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.ObjectModel | OpcodeFlags.OperandSize4, "Initobj", 0x15, true, PopBehavior.Popi, PushBehavior.Push0 ); | |
extendedTraits [0x16] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Prefix | OpcodeFlags.OperandSize4, "Constrained", 0x16, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
extendedTraits [0x17] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Cpblk", 0x17, true, PopBehavior.Popi_popi_popi, PushBehavior.Push0 ); | |
extendedTraits [0x18] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Initblk", 0x18, true, PopBehavior.Popi_popi_popi, PushBehavior.Push0 ); | |
extendedTraits [0x19] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Prefix | OpcodeFlags.OperandSize1, "No", 0x19, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
extendedTraits [0x1a] = new OpcodeTraits (OpcodeFlags.Throw | OpcodeFlags.ObjectModel | OpcodeFlags.NoOperand, "Rethrow", 0x1a, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
extendedTraits [0x1b] = new OpcodeTraits (OpcodeFlags.Invalid, null, 0x1b, true, PopBehavior.Pop0, PushBehavior.Push0); | |
extendedTraits [0x1c] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.OperandSize4, "Sizeof", 0x1c, true, PopBehavior.Pop0, PushBehavior.Pushi ); | |
extendedTraits [0x1d] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Primitive | OpcodeFlags.NoOperand, "Refanytype", 0x1d, true, PopBehavior.Pop1, PushBehavior.Pushi ); | |
extendedTraits [0x1e] = new OpcodeTraits (OpcodeFlags.Next | OpcodeFlags.Prefix | OpcodeFlags.NoOperand, "Readonly", 0x1e, true, PopBehavior.Pop0, PushBehavior.Push0 ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment