**** Merged from MCS ****
[mono-project.git] / mcs / class / corlib / System.Reflection.Emit / StackBehaviour.cs
blob0b4d45637b233fff2b301c0047bcb7ff32137d89
1 // StackBehaviour.cs
2 //
3 // (C) 2001 Ximian, Inc. http://www.ximian.com
5 //
6 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
7 //
8 // Permission is hereby granted, free of charge, to any person obtaining
9 // a copy of this software and associated documentation files (the
10 // "Software"), to deal in the Software without restriction, including
11 // without limitation the rights to use, copy, modify, merge, publish,
12 // distribute, sublicense, and/or sell copies of the Software, and to
13 // permit persons to whom the Software is furnished to do so, subject to
14 // the following conditions:
15 //
16 // The above copyright notice and this permission notice shall be
17 // included in all copies or substantial portions of the Software.
18 //
19 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
23 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
24 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 namespace System.Reflection.Emit {
31 /// <summary>
32 /// Describes how values are pushed onto or popped off a stack.
33 /// </summary>
34 public enum StackBehaviour {
36 /// <summary>
37 /// </summary>
38 Pop0 = 0,
40 /// <summary>
41 /// </summary>
42 Pop1 = 1,
44 /// <summary>
45 /// </summary>
46 Pop1_pop1 = 2,
48 /// <summary>
49 /// </summary>
50 Popi = 3,
52 /// <summary>
53 /// </summary>
54 Popi_pop1 = 4,
56 /// <summary>
57 /// </summary>
58 Popi_popi = 5,
60 /// <summary>
61 /// </summary>
62 Popi_popi8 = 6,
64 /// <summary>
65 /// </summary>
66 Popi_popi_popi = 7,
68 /// <summary>
69 /// </summary>
70 Popi_popr4 = 8,
72 /// <summary>
73 /// </summary>
74 Popi_popr8 = 9,
76 /// <summary>
77 /// </summary>
78 Popref = 0x0A,
80 /// <summary>
81 /// </summary>
82 Popref_pop1 = 0x0B,
84 /// <summary>
85 /// </summary>
86 Popref_popi = 0x0C,
88 /// <summary>
89 /// </summary>
90 Popref_popi_popi = 0x0D,
92 /// <summary>
93 /// </summary>
94 Popref_popi_popi8 = 0x0E,
96 /// <summary>
97 /// </summary>
98 Popref_popi_popr4 = 0x0F,
100 /// <summary>
101 /// </summary>
102 Popref_popi_popr8 = 0x10,
104 /// <summary>
105 /// </summary>
106 Popref_popi_popref = 0x11,
108 /// <summary>
109 /// </summary>
110 Push0 = 0x12,
112 /// <summary>
113 /// </summary>
114 Push1 = 0x13,
116 /// <summary>
117 /// </summary>
118 Push1_push1 = 0x14,
120 /// <summary>
121 /// </summary>
122 Pushi = 0x15,
124 /// <summary>
125 /// </summary>
126 Pushi8 = 0x16,
128 /// <summary>
129 /// </summary>
130 Pushr4 = 0x17,
132 /// <summary>
133 /// </summary>
134 Pushr8 = 0x18,
136 /// <summary>
137 /// </summary>
138 Pushref = 0x19,
140 /// <summary>
141 /// </summary>
142 Varpop = 0x1A,
144 /// <summary>
145 /// </summary>
146 Varpush = 0x1B