summaryrefslogtreecommitdiff
path: root/src/msil/ch/epfl/lamp/compiler/msil/emit/OpCodes.scala
blob: 557b022f542a0339a5b4136ddce9c39cfa76908b (plain) (blame)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
/*
 * System.Reflection.Emit-like API for writing .NET assemblies to MSIL
 */

// $Id$

package ch.epfl.lamp.compiler.msil.emit


/**
 * Provides field representations of the Microsoft Intermediate Language (MSIL)
 * instructions for emission by the ILGenerator class members (such as Emit).
 *
 * @author Nikolay Mihaylov
 * @version 1.0
 */
object OpCodes {

    //##########################################################################

    /**
     * Adds two values and pushes the result onto the evaluation stack.
     */
     final val Add = OpCode.Add

    /**
     * Fills space if bytecodes are patched. No meaningful operation is performed
     * although a processing cycle can be consumed.
     */
     final val Nop = OpCode.Nop

    /**
     * Signals the Common Language Infrastructure (CLI) to inform the debugger that
     * a break point has been tripped.
     */
     final val Break = OpCode.Break

    /**
     * Loads the argument at index 0 onto the evaluation stack.
     */
     final val Ldarg_0 = OpCode.Ldarg_0

    /**
     * Loads the argument at index 1 onto the evaluation stack.
     */
     final val Ldarg_1 = OpCode.Ldarg_1

    /**
     * Loads the argument at index 2 onto the evaluation stack.
     */
     final val Ldarg_2 = OpCode.Ldarg_2

    /**
     * Loads the argument at index 3 onto the evaluation stack.
     */
     final val Ldarg_3 = OpCode.Ldarg_3

    /**
     * Loads the local variable at index 0 onto the evaluation stack.
     */
     final val Ldloc_0 = OpCode.Ldloc_0

    /**
     * Loads the local variable at index 1 onto the evaluation stack.
     */
     final val Ldloc_1 = OpCode.Ldloc_1

    /**
     * Loads the local variable at index 2 onto the evaluation stack.
     */
     final val Ldloc_2 = OpCode.Ldloc_2

    /**
     * Loads the local variable at index 3 onto the evaluation stack.
     */
     final val Ldloc_3 = OpCode.Ldloc_3

    /**
     * Pops the current value from the top of the evaluation stack and
     * stores it in a the local variable list at index 0.
     */
     final val Stloc_0 = OpCode.Stloc_0

    /**
     * Pops the current value from the top of the evaluation stack and
     * stores it in a the local variable list at index 1.
     */
     final val Stloc_1 = OpCode.Stloc_1

    /**
     * Pops the current value from the top of the evaluation stack and
     * stores it in a the local variable list at index 2.
     */
     final val Stloc_2 = OpCode.Stloc_2

    /**
     * Pops the current value from the top of the evaluation stack and
     * stores it in a the local variable list at index 3.
     */
     final val Stloc_3 = OpCode.Stloc_3

    /**
     * Loads the argument (referenced by a specified short form index)
     * onto the evaluation stack.
     */
     final val Ldarg_S = OpCode.Ldarg_S

    /**
     * Load an argument address, in short form, onto the evaluation stack.
     */
     final val Ldarga_S = OpCode.Ldarga_S

    /**
     * Loads the local variable at a specific index onto the evaluation stack,
     * short form.
     */
     final val Ldloc_S = OpCode.Ldloc_S

    /**
     * Loads the address of the local variable at a specific index onto
     * the evaluation stack, short form.
     */
     final val Ldloca_S = OpCode.Ldloca_S

    /**
     * Stores the value on top of the evaluation stack in the argument slot
     * at a specified index, short form.
     */
     final val Starg_S = OpCode.Starg_S

    /**
     * Pops the current value from the top of the evaluation stack and stores it
     * in a the local variable list at index (short form).
     */
     final val Stloc_S = OpCode.Stloc_S

    /**
     * Pushes a null reference (type O) onto the evaluation stack.
     */
     final val Ldnull = OpCode.Ldnull

    /**
     * Pushes the integer value of -1 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_M1 = OpCode.Ldc_I4_M1

    /**
     * Pushes the integer value of 0 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_0 = OpCode.Ldc_I4_0

    /**
     * Pushes the integer value of 1 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_1 = OpCode.Ldc_I4_1

    /**
     * Pushes the integer value of 2 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_2 = OpCode.Ldc_I4_2

    /**
     * Pushes the integer value of 3 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_3 = OpCode.Ldc_I4_3

    /**
     * Pushes the integer value of 4 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_4 = OpCode.Ldc_I4_4

    /**
     * Pushes the integer value of 5 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_5 = OpCode.Ldc_I4_5

    /**
     * Pushes the integer value of 6 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_6 = OpCode.Ldc_I4_6

    /**
     * Pushes the integer value of 7 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_7 = OpCode.Ldc_I4_7

    /**
     * Pushes the integer value of 8 onto the evaluation stack as an int32.
     */
     final val Ldc_I4_8 = OpCode.Ldc_I4_8

    /**
     * Pushes the supplied int8 value onto the evaluation stack as an int32, short form.
     */
     final val Ldc_I4_S = OpCode.Ldc_I4_S

    /**
     * Pushes a supplied value of type int32 onto the evaluation stack as an int32.
     */
     final val Ldc_I4 = OpCode.Ldc_I4

    /**
     *  Pushes a supplied value of type int64 onto the evaluation stack as an int64.
     */
     final val Ldc_I8 = OpCode.Ldc_I8

    /**
     * Pushes a supplied value of type float32 onto the evaluation stack as type F (float).
     */
     final val Ldc_R4 = OpCode.Ldc_R4

    /**
     * Pushes a supplied value of type float64 onto the evaluation stack as type F (float).
     */
     final val Ldc_R8 = OpCode.Ldc_R8

    /**
     * Copies the current topmost value on the evaluation stack, and then pushes the copy
     * onto the evaluation stack.
     */
     final val Dup = OpCode.Dup

    /**
     * Removes the value currently on top of the evaluation stack.
     */
     final val Pop = OpCode.Pop

    /**
     * Exits current method and jumps to specified method.
     */
     final val Jmp = OpCode.Jmp

    /**
     * Calls the method indicated by the passed method descriptor.
     */
     final val Call = OpCode.Call

    /**
     * Calls the method indicated on the evaluation stack (as a pointer to an entry point)
     * with arguments described by a calling convention.
     */
     final val Calli = OpCode.Calli

    /**
     * Returns from the current method, pushing a return value (if present) from the caller's
     * evaluation stack onto the callee's evaluation stack.
     */
     final val Ret = OpCode.Ret

    /**
     * Unconditionally transfers control to a target instruction (short form).
     */
     final val Br_S = OpCode.Br_S

    /**
     * Transfers control to a target instruction if value is false, a null reference, or zero.
     */
     final val Brfalse_S = OpCode.Brfalse_S

    /**
     * Transfers control to a target instruction (short form) if value is true, not null, or non-zero.
     */
     final val Brtrue_S = OpCode.Brtrue_S

    /**
     * Transfers control to a target instruction (short form) if two values are equal.
     */
     final val Beq_S = OpCode.Beq_S

    /**
     * Transfers control to a target instruction (short form) if the first value is greater than
     * or equal to the second value.
     */
     final val Bge_S = OpCode.Bge_S

    /**
     * Transfers control to a target instruction (short form) if the first value is greater than
     * the second value.
     */
     final val Bgt_S = OpCode.Bgt_S

    /**
     * Transfers control to a target instruction (short form) if the first value is less than
     * or equal to the second value.
     */
     final val Ble_S = OpCode.Ble_S

    /**
     * Transfers control to a target instruction (short form) if the first value is less than
     * the second value.
     */
     final val Blt_S = OpCode.Blt_S

    /**
     * Transfers control to a target instruction (short form) when two unsigned integer values
     * or unordered float values are not equal.
     */
     final val Bne_Un_S = OpCode.Bne_Un_S

    /**
     * Transfers control to a target instruction (short form) if if the the first value is greather
     * than the second value, when comparing unsigned integer values or unordered float values.
     */
     final val Bge_Un_S = OpCode.Bge_Un_S

    /**
     * Transfers control to a target instruction (short form) if the first value is greater than
     * the second value, when comparing unsigned integer values or unordered float values.
     */
     final val Bgt_Un_S = OpCode.Bgt_Un_S

    /**
     * Transfers control to a target instruction (short form) if the first value is less than
     * or equal to the second value, when comparing unsigned integer values or unordered float values.
     */
     final val Ble_Un_S = OpCode.Ble_Un_S

    /**
     * Transfers control to a target instruction (short form) if the first value is less than
     * the second value, when comparing unsigned integer values or unordered float values.
     */
     final val Blt_Un_S = OpCode.Blt_Un_S

    /**
     * Unconditionally transfers control to a target instruction.
     */
     final val Br = OpCode.Br

    /**
     * Transfers control to a target instruction if value is false, a null reference
     * (Nothing in Visual Basic), or zero.
     */
     final val Brfalse = OpCode.Brfalse

    /**
     * Transfers control to a target instruction if value is true, not null, or non-zero.
     */
     final val Brtrue = OpCode.Brtrue

    /**
     * Transfers control to a target instruction if two values are equal.
     */
     final val Beq = OpCode.Beq

    /**
     * Transfers control to a target instruction if the first value is greater than or
     * equal to the second value.
     */
     final val Bge = OpCode.Bge

    /**
     * Transfers control to a target instruction if the first value is greater than the second value.
     */
     final val Bgt = OpCode.Bgt

    /**
     * Transfers control to a target instruction if the first value is less than or equal
     * to the second value.
     */
     final val Ble = OpCode.Ble

    /**
     *  Transfers control to a target instruction if the first value is less than the second value.
     */
     final val Blt = OpCode.Blt

    /**
     * Transfers control to a target instruction when two unsigned integer values or
     * unordered float values are not equal.
     */
     final val Bne_Un = OpCode.Bne_Un

    /**
     * Transfers control to a target instruction if the the first value is greather than
     * the second value, when comparing unsigned integer values or unordered float values.
     */
     final val Bge_Un = OpCode.Bge_Un

    /**
     * Transfers control to a target instruction if the first value is greater than the
     * second value, when comparing unsigned integer values or unordered float values.
     */
     final val Bgt_Un = OpCode.Bgt_Un

    /**
     * Transfers control to a target instruction if the first value is less than or equal to
     * the second value, when comparing unsigned integer values or unordered float values.
     */
     final val Ble_Un = OpCode.Ble_Un

    /**
     * Transfers control to a target instruction if the first value is less than the second value,
     * when comparing unsigned integer values or unordered float values.
     */
     final val Blt_Un = OpCode.Blt_Un

    /**
     * Implements a jump table.
     */
     final val Switch = OpCode.Switch

    /**
     * Loads a value of type int8 as an int32 onto the evaluation stack indirectly.
     */
     final val Ldind_I1 = OpCode.Ldind_I1

    /**
     *  Loads a value of type int16 as an int32 onto the evaluation stack indirectly.
     */
     final val Ldind_I2 = OpCode.Ldind_I2

    /**
     * Loads a value of type int32 as an int32 onto the evaluation stack indirectly.
     */
     final val Ldind_I4 = OpCode.Ldind_I4

    /**
     * Loads a value of type int64 as an int64 onto the evaluation stack indirectly.
     */
     final val Ldind_I8 = OpCode.Ldind_I8

    /**
     * Loads a value of type natural int as a natural int onto the evaluation stack indirectly.
     */
     final val Ldind_I = OpCode.Ldind_I

    /**
     *  Loads a value of type float32 as a type F (float) onto the evaluation stack indirectly.
     */
     final val Ldind_R4 = OpCode.Ldind_R4

    /**
     * Loads a value of type float64 as a type F (float) onto the evaluation stack indirectly.
     */
     final val Ldind_R8 = OpCode.Ldind_R8

    /**
     * Loads an object reference as a type O (object reference) onto the evaluation stack indirectly.
     */
     final val Ldind_Ref = OpCode.Ldind_Ref

    /**
     * Loads a value of type unsigned int8 as an int32 onto the evaluation stack indirectly.
     */
     final val Ldind_U1 = OpCode.Ldind_U1

    /**
     * Loads a value of type unsigned int16 as an int32 onto the evaluation stack indirectly.
     */
     final val Ldind_U2 = OpCode.Ldind_U2

    /**
     * Loads a value of type unsigned int32 as an int32 onto the evaluation stack indirectly.
     */
     final val Ldind_U4 = OpCode.Ldind_U4

    /**
     * Stores a object reference value at a supplied address.
     */
     final val Stind_Ref = OpCode.Stind_Ref

    /**
     * Stores a value of type int8 at a supplied address.
     */
     final val Stind_I1 = OpCode.Stind_I1

    /**
     * Stores a value of type int16 at a supplied address.
     */
     final val Stind_I2 = OpCode.Stind_I2

    /**
     * Stores a value of type int32 at a supplied address.
     */
     final val Stind_I4 = OpCode.Stind_I4

    /**
     * Stores a value of type int64 at a supplied address.
     */
     final val Stind_I8 = OpCode.Stind_I8

    /**
     * Stores a value of type float32 at a supplied address.
     */
     final val Stind_R4 = OpCode.Stind_R4

    /**
     * Stores a value of type float64 at a supplied address.
     */
     final val Stind_R8 = OpCode.Stind_R8

    /**
     * Subtracts one value from another and pushes the result onto the evaluation stack.
     */
     final val Sub = OpCode.Sub

    /**
     * Multiplies two values and pushes the result on the evaluation stack.
     */
     final val Mul = OpCode.Mul

    /**
     * Divides two values and pushes the result as a floating-point (type F) or
     * quotient (type int32) onto the evaluation stack.
     */
     final val Div = OpCode.Div

    /**
     * Divides two unsigned integer values and pushes the result (int32) onto the evaluation stack.
     */
     final val Div_Un = OpCode.Div_Un

    /**
     * Divides two values and pushes the remainder onto the evaluation stack.
     */
     final val Rem = OpCode.Rem

    /**
     * Divides two unsigned values and pushes the remainder onto the evaluation stack.
     */
     final val Rem_Un = OpCode.Rem_Un

    /**
     * Computes the bitwise AND of two values and pushes the result onto the evaluation stack.
     */
     final val And = OpCode.And

    /**
     * Compute the bitwise complement of the two integer values on top of the stack and
     * pushes the result onto the evaluation stack.
     */
     final val Or = OpCode.Or

    /**
     * Computes the bitwise XOR of the top two values on the evaluation stack,
     * pushing the result onto the evaluation stack.
     */
     final val Xor = OpCode.Xor

    /**
     * Shifts an integer value to the left (in zeroes) by a specified number of bits,
     *  pushing the result onto the evaluation stack.
     */
     final val Shl = OpCode.Shl

    /**
     * Shifts an integer value (in sign) to the right by a specified number of bits,
     * pushing the result onto the evaluation stack.
     */
     final val Shr = OpCode.Shr

    /**
     * Shifts an unsigned integer value (in zeroes) to the right by a specified number of bits,
     * pushing the result onto the evaluation stack.
     */
     final val Shr_Un = OpCode.Shr_Un

    /**
     * Negates a value and pushes the result onto the evaluation stack.
     */
     final val Neg = OpCode.Neg

    /**
     * Computes the bitwise complement of the integer value on top of the stack and pushes
     * the result onto the evaluation stack as the same type.
     */
     final val Not = OpCode.Not

    /**
     *  Converts the value on top of the evaluation stack to int8, then extends (pads) it to int32.
     */
     final val Conv_I1 = OpCode.Conv_I1

    /**
     * Converts the value on top of the evaluation stack to int16, then extends (pads) it to int32.
     */
     final val Conv_I2 = OpCode.Conv_I2

    /**
     * Converts the value on top of the evaluation stack to int32.
     */
     final val Conv_I4 = OpCode.Conv_I4

    /**
     * Converts the value on top of the evaluation stack to int64.
     */
     final val Conv_I8 = OpCode.Conv_I8

    /**
     * Converts the value on top of the evaluation stack to float32.
     */
     final val Conv_R4 = OpCode.Conv_R4

    /**
     * Converts the value on top of the evaluation stack to float64.
     */
     final val Conv_R8 = OpCode.Conv_R8

    /**
     * Converts the value on top of the evaluation stack to unsigned int32, and extends it to int32.
     */
     final val Conv_U4 = OpCode.Conv_U4

    /**
     * Converts the value on top of the evaluation stack to unsigned int64, and extends it to int64.
     */
     final val Conv_U8 = OpCode.Conv_U8

    /**
     * Calls a late-bound method on an object, pushing the return value onto the evaluation stack.
     */
     final val Callvirt = OpCode.Callvirt

    /**
     * Copies the value type located at the address of an object (type &, * or natural int)
     * to the address of the destination object (type &, * or natural int).
     */
     final val Cpobj = OpCode.Cpobj

    /**
     * Copies the value type object pointed to by an address to the top of the evaluation stack.
     */
     final val Ldobj = OpCode.Ldobj

    /**
     * Pushes a new object reference to a string literal stored in the metadata.
     */
     final val Ldstr = OpCode.Ldstr

    /**
     * Creates a new object or a new instance of a value type, pushing an object reference
     * (type O) onto the evaluation stack.
     */
     final val Newobj = OpCode.Newobj

    /**
     * Attempts to cast an object passed by reference to the specified class.
     */
     final val Castclass = OpCode.Castclass

    /**
     * Tests whether an object reference (type O) is an instance of a particular class.
     */
     final val Isinst = OpCode.Isinst

    /**
     *  Converts the unsigned integer value on top of the evaluation stack to float32.
     */
     final val Conv_R_Un = OpCode.Conv_R_Un

    /**
     * Converts the boxed representation of a value type to its unboxed form.
     */
     final val Unbox = OpCode.Unbox

    /**
     * Throws the exception object currently on the evaluation stack.
     */
     final val Throw = OpCode.Throw

    /**
     *  Finds the value of a field in the object whose reference is currently
     * on the evaluation stack.
     */
     final val Ldfld = OpCode.Ldfld

    /**
     *  Finds the address of a field in the object whose reference is currently
     * on the evaluation stack.
     */
     final val Ldflda = OpCode.Ldflda

    /**
     * Pushes the value of a static field onto the evaluation stack.
     */
     final val Ldsfld = OpCode.Ldsfld

    /**
     * Pushes the address of a static field onto the evaluation stack.
     */
     final val Ldsflda = OpCode.Ldsflda

    /**
     *  Replaces the value stored in the field of an object reference or pointer with a new value.
     */
     final val Stfld = OpCode.Stfld

    /**
     * Replaces the value of a static field with a value from the evaluation stack.
     */
     final val Stsfld = OpCode.Stsfld

    /**
     * Copies a value of a specified type from the evaluation stack into a supplied memory address.
     */
     final val Stobj = OpCode.Stobj

    /**
     * Converts the unsigned value on top of the evaluation stack to signed int8 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I1_Un = OpCode.Conv_Ovf_I1_Un

    /**
     *  Converts the unsigned value on top of the evaluation stack to signed int16 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I2_Un = OpCode.Conv_Ovf_I2_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to signed int32,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I4_Un = OpCode.Conv_Ovf_I4_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to signed int64,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I8_Un = OpCode.Conv_Ovf_I8_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to signed natural int,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I_Un = OpCode.Conv_Ovf_I_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to unsigned int8 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U1_Un = OpCode.Conv_Ovf_U1_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to unsigned int16 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U2_Un = OpCode.Conv_Ovf_U2_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to unsigned int32,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U4_Un = OpCode.Conv_Ovf_U4_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to unsigned int64,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U8_Un = OpCode.Conv_Ovf_U8_Un

    /**
     * Converts the unsigned value on top of the evaluation stack to unsigned natural int,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U_Un = OpCode.Conv_Ovf_U_Un

    /**
     * Converts a value type to an object reference (type O).
     */
     final val Box = OpCode.Box

    /**
     * Pushes an object reference to a new zero-based, one-dimensional array whose elements
     * are of a specific type onto the evaluation stack.
     */
     final val Newarr = OpCode.Newarr

    /**
     * Pushes the number of elements of a zero-based, one-dimensional array
     * onto the evaluation stack.
     */
     final val Ldlen = OpCode.Ldlen

    /**
     * Loads the address of the array element at a specified array index onto
     * the top of the evaluation stack as type & (managed pointer).
     */
     final val Ldelema = OpCode.Ldelema

    /**
     * Loads the element with type natural int at a specified array index onto the top
     * of the evaluation stack as a natural int.
     */
     final val Ldelem_I = OpCode.Ldelem_I

    /**
     * Loads the element with type int8 at a specified array index onto the top of the
     * evaluation stack as an int32.
     */
     final val Ldelem_I1 = OpCode.Ldelem_I1

    /**
     * Loads the element with type int16 at a specified array index onto the top of
     * the evaluation stack as an int32.
     */
     final val Ldelem_I2 = OpCode.Ldelem_I2

    /**
     *  Loads the element with type int32 at a specified array index onto the top of the
     * evaluation stack as an int32.
     */
     final val Ldelem_I4 = OpCode.Ldelem_I4

    /**
     *  Loads the element with type int64 at a specified array index onto the top of the
     * evaluation stack as an int64.
     */
     final val Ldelem_I8 = OpCode.Ldelem_I8

    /**
     * Loads the element with type float32 at a specified array index onto the top of the
     * evaluation stack as type F (float)
     */
     final val Ldelem_R4 = OpCode.Ldelem_R4

    /**
     * Loads the element with type float64 at a specified array index onto the top of the
     * evaluation stack as type F (float) .
     */
     final val Ldelem_R8 = OpCode.Ldelem_R8

    /**
     * Loads the element containing an object reference at a specified array index onto
     * the top of the evaluation stack as type O (object reference).
     */
     final val Ldelem_Ref = OpCode.Ldelem_Ref

    /**
     * Loads the element with type unsigned int8 at a specified array index onto the top
     * of the evaluation stack as an int32.
     */
     final val Ldelem_U1 = OpCode.Ldelem_U1

    /**
     * Loads the element with type unsigned int16 at a specified array index onto the top
     * of the evaluation stack as an int32.
     */
     final val Ldelem_U2 = OpCode.Ldelem_U2

    /**
     * Loads the element with type unsigned int32 at a specified array index onto the top
     * of the evaluation stack as an int32.
     */
     final val Ldelem_U4 = OpCode.Ldelem_U4

    /**
     *  Replaces the array element at a given index with the natural int value on
     * the evaluation stack.
     */
     final val Stelem_I = OpCode.Stelem_I

    /**
     * Replaces the array element at a given index with the int8 value on the evaluation stack.
     */
     final val Stelem_I1 = OpCode.Stelem_I1

    /**
     *  Replaces the array element at a given index with the int16 value on the evaluation stack.
     */
     final val Stelem_I2 = OpCode.Stelem_I2

    /**
     *  Replaces the array element at a given index with the int32 value on the evaluation stack.
     */
     final val Stelem_I4 = OpCode.Stelem_I4

    /**
     * Replaces the array element at a given index with the int64 value on the evaluation stack.
     */
     final val Stelem_I8 = OpCode.Stelem_I8

    /**
     * Replaces the array element at a given index with the float32 value on the evaluation stack.
     */
     final val Stelem_R4 = OpCode.Stelem_R4

    /**
     * Replaces the array element at a given index with the float64 value on the evaluation stack.
     */
     final val Stelem_R8 = OpCode.Stelem_R8

    /**
     * Replaces the array element at a given index with the object ref value (type O)
     * on the evaluation stack.
     */
     final val Stelem_Ref = OpCode.Stelem_Ref

    /**
     * Converts the signed value on top of the evaluation stack to signed int8 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I1 = OpCode.Conv_Ovf_I1

    /**
     * Converts the signed value on top of the evaluation stack to signed int16 and
     * extending it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I2 = OpCode.Conv_Ovf_I2

    /**
     * Converts the signed value on top of the evaluation stack to signed int32,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I4 = OpCode.Conv_Ovf_I4

    /**
     * Converts the signed value on top of the evaluation stack to signed int64,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I8 = OpCode.Conv_Ovf_I8

    /**
     * Converts the signed value on top of the evaluation stack to unsigned int8 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U1 = OpCode.Conv_Ovf_U1

    /**
     * Converts the signed value on top of the evaluation stack to unsigned int16 and
     * extends it to int32, throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U2 = OpCode.Conv_Ovf_U2

    /**
     *  Converts the signed value on top of the evaluation stack to unsigned int32,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U4 = OpCode.Conv_Ovf_U4

    /**
     * Converts the signed value on top of the evaluation stack to unsigned int64,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U8 = OpCode.Conv_Ovf_U8

    /**
     *  Retrieves the address (type &) embedded in a typed reference.
     */
     final val Refanyval = OpCode.Refanyval

    /**
     * Retrieves the type token embedded in a typed reference .
     */
     final val Refanytype = OpCode.Refanytype

    /**
     * Throws ArithmeticException if value is not a finite number.
     */
     final val Ckfinite = OpCode.Ckfinite

    /**
     * Pushes a typed reference to an instance of a specific type onto the evaluation stack.
     */
     final val Mkrefany = OpCode.Mkrefany

    /**
     * Converts a metadata token to its runtime representation, pushing it onto the evaluation stack.
     */
     final val Ldtoken = OpCode.Ldtoken

    /**
     * Converts the value on top of the evaluation stack to unsigned int8, and extends it to int32.
     */
     final val Conv_U1 = OpCode.Conv_U1

    /**
     * Converts the value on top of the evaluation stack to unsigned int16, and extends it to int32.
     */
     final val Conv_U2 = OpCode.Conv_U2

    /**
     * Converts the value on top of the evaluation stack to natural int.
     */
     final val Conv_I = OpCode.Conv_I

    /**
     * Converts the signed value on top of the evaluation stack to signed natural int,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_I = OpCode.Conv_Ovf_I

    /**
     * Converts the signed value on top of the evaluation stack to unsigned natural int,
     * throwing OverflowException on overflow.
     */
     final val Conv_Ovf_U = OpCode.Conv_Ovf_U

    /**
     * Adds two integers, performs an overflow check, and pushes the result
     * onto the evaluation stack.
     */
     final val Add_Ovf = OpCode.Add_Ovf

    /**
     *  Adds two unsigned integer values, performs an overflow check, and pushes the result
     * onto the evaluation stack.
     */
     final val Add_Ovf_Un = OpCode.Add_Ovf_Un

    /**
     * Multiplies two integer values, performs an overflow check, and pushes the result
     * onto the evaluation stack.
     */
     final val Mul_Ovf = OpCode.Mul_Ovf

    /**
     * Multiplies two unsigned integer values , performs an overflow check ,
     * and pushes the result onto the evaluation stack.
     */
     final val Mul_Ovf_Un = OpCode.Mul_Ovf_Un

    /**
     * Subtracts one integer value from another, performs an overflow check,
     * and pushes the result onto the evaluation stack.
     */
     final val Sub_Ovf = OpCode.Sub_Ovf

    /**
     * Subtracts one unsigned integer value from another, performs an overflow check,
     * and pushes the result onto the evaluation stack.
     */
     final val Sub_Ovf_Un = OpCode.Sub_Ovf_Un

    /**
     * Transfers control from the fault or finally clause of an exception block back to
     * the Common Language Infrastructure (CLI) exception handler.
     */
     final val Endfinally = OpCode.Endfinally

    /**
     * Exits a protected region of code, unconditionally tranferring control
     * to a specific target instruction.
     */
     final val Leave = OpCode.Leave

    /**
     * Exits a protected region of code, unconditionally tranferring control
     * to a target instruction (short form).
     */
     final val Leave_S = OpCode.Leave_S

    /**
     * Stores a value of type natural int at a supplied address.
     */
     final val Stind_I = OpCode.Stind_I

    /**
     *  Converts the value on top of the evaluation stack to unsigned natural int,
     * and extends it to natural int.
     */
     final val Conv_U = OpCode.Conv_U

    /**
     * Returns an unmanaged pointer to the argument list of the current method.
     */
     final val Arglist = OpCode.Arglist

    /**
     * Compares two values. If they are equal, the integer value 1 (int32) is pushed
     * onto the evaluation stack otherwise 0 (int32) is pushed onto the evaluation stack.
     */
     final val Ceq = OpCode.Ceq

    /**
     * Compares two values. If the first value is greater than the second,
     * the integer value 1 (int32) is pushed onto the evaluation stack
     * otherwise 0 (int32) is pushed onto the evaluation stack.
     */
     final val Cgt = OpCode.Cgt

    /**
     *  Compares two unsigned or unordered values. If the first value is greater than
     * the second, the integer value 1 (int32) is pushed onto the evaluation stack
     * otherwise 0 (int32) is pushed onto the evaluation stack.
     */
     final val Cgt_Un = OpCode.Cgt_Un

    /**
     * Compares two values. If the first value is less than the second,
     * the integer value 1 (int32) is pushed onto the evaluation stack
     * otherwise 0 (int32) is pushed onto the evaluation stack.
     */
     final val Clt = OpCode.Clt

    /**
     *  Compares the unsigned or unordered values value1 and value2. If value1 is
     * less than value2, then the integer value 1 (int32) is pushed onto the
     * evaluation stack otherwise 0 (int32) is pushed onto the evaluation stack.
     */
     final val Clt_Un = OpCode.Clt_Un

    /**
     * Pushes an unmanaged pointer (type natural int) to the native code implementing
     * a specific method onto the evaluation stack.
     */
     final val Ldftn = OpCode.Ldftn

    /**
     * Pushes an unmanaged pointer (type natural int) to the native code implementing
     * a particular virtual method associated with a specified object onto the evaluation stack.
     */
     final val Ldvirtftn = OpCode.Ldvirtftn

    /**
     * Loads an argument (referenced by a specified index value) onto the stack.
     */
     final val Ldarg = OpCode.Ldarg

    /**
     * Load an argument address onto the evaluation stack.
     */
     final val Ldarga = OpCode.Ldarga

    /**
     * Loads the local variable at a specific index onto the evaluation stack.
     */
     final val Ldloc = OpCode.Ldloc

    /**
     *  Loads the address of the local variable at a specific index onto the evaluation stack.
     */
     final val Ldloca = OpCode.Ldloca

    /**
     *  Stores the value on top of the evaluation stack in the argument slot at a specified index.
     */
     final val Starg = OpCode.Starg

    /**
     * Pops the current value from the top of the evaluation stack and stores it in a
     * the local variable list at a specified index.
     */
     final val Stloc = OpCode.Stloc

    /**
     * Allocates a certain number of bytes from the local dynamic memory pool and pushes the
     * address (a transient pointer, type *) of the first allocated Byte onto the evaluation stack.
     */
     final val Localloc = OpCode.Localloc

    /**
     * Transfers control from the filter clause of an exception back to the
     * Common Language Infrastructure (CLI) exception handler.
     */
     final val Endfilter = OpCode.Endfilter

    /**
     * Indicates that an address currently atop the evaluation stack might not be aligned
     * to the natural size of the immediately following ldind, stind, ldfld, stfld, ldobj,
     * stobj, initblk, or cpblk instruction.
     */
     final val Unaligned = OpCode.Unaligned

    /**
     * Specifies that an address currently atop the evaluation stack might be volatile,
     * and the results of reading that location cannot be cached or that multiple stores
     * to that location cannot be suppressed.
     */
     final val Volatile = OpCode.Volatile

    /**
     * Performs a postfixed method call instruction such that the current method's stack
     * frame is removed before the actual call instruction is executed.
     */
     final val Tailcall = OpCode.Tailcall

    /**
     * Initializes all the fields of the object at a specific address to a null reference
     * or a 0 of the appropriate primitive type.
     */
     final val Initobj = OpCode.Initobj

    /**
     * Copies a specified number bytes from a source address to a destination address .
     */
     final val Cpblk = OpCode.Cpblk

    /**
     * Initializes a specified block of memory at a specific address to a given size
     * and initial value.
     */
     final val Initblk = OpCode.Initblk

    /**
     * Rethrows the current exception.
     */
     final val Rethrow = OpCode.Rethrow

    /**
     * Pushes the size, in bytes, of a supplied value type onto the evaluation stack.
     */
     final val Sizeof = OpCode.Sizeof

    //##########################################################################
}