2007-11-14 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection.Emit / StackBehaviour.cs
1 // StackBehaviour.cs
2 //
3 // (C) 2001 Ximian, Inc.  http://www.ximian.com
4
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.
26 //
27
28 using System.Runtime.InteropServices;
29
30 namespace System.Reflection.Emit {
31
32         /// <summary>
33         ///  Describes how values are pushed onto or popped off a stack.
34         /// </summary>
35 #if NET_2_0
36         [ComVisible (true)]
37         [Serializable]
38 #endif
39         public enum StackBehaviour {
40
41                 /// <summary>
42                 /// </summary>
43                 Pop0 = 0,
44
45                 /// <summary>
46                 /// </summary>
47                 Pop1 = 1,
48
49                 /// <summary>
50                 /// </summary>
51                 Pop1_pop1 = 2,
52
53                 /// <summary>
54                 /// </summary>
55                 Popi = 3,
56
57                 /// <summary>
58                 /// </summary>
59                 Popi_pop1 = 4,
60
61                 /// <summary>
62                 /// </summary>
63                 Popi_popi = 5,
64
65                 /// <summary>
66                 /// </summary>
67                 Popi_popi8 = 6,
68
69                 /// <summary>
70                 /// </summary>
71                 Popi_popi_popi = 7,
72
73                 /// <summary>
74                 /// </summary>
75                 Popi_popr4 = 8,
76
77                 /// <summary>
78                 /// </summary>
79                 Popi_popr8 = 9,
80
81                 /// <summary>
82                 /// </summary>
83                 Popref = 0x0A,
84
85                 /// <summary>
86                 /// </summary>
87                 Popref_pop1 = 0x0B,
88
89                 /// <summary>
90                 /// </summary>
91                 Popref_popi = 0x0C,
92
93                 /// <summary>
94                 /// </summary>
95                 Popref_popi_popi = 0x0D,
96
97                 /// <summary>
98                 /// </summary>
99                 Popref_popi_popi8 = 0x0E,
100
101                 /// <summary>
102                 /// </summary>
103                 Popref_popi_popr4 = 0x0F,
104
105                 /// <summary>
106                 /// </summary>
107                 Popref_popi_popr8 = 0x10,
108
109                 /// <summary>
110                 /// </summary>
111                 Popref_popi_popref = 0x11,
112
113                 /// <summary>
114                 /// </summary>
115                 Push0 = 0x12,
116
117                 /// <summary>
118                 /// </summary>
119                 Push1 = 0x13,
120
121                 /// <summary>
122                 /// </summary>
123                 Push1_push1 = 0x14,
124
125                 /// <summary>
126                 /// </summary>
127                 Pushi = 0x15,
128
129                 /// <summary>
130                 /// </summary>
131                 Pushi8 = 0x16,
132
133                 /// <summary>
134                 /// </summary>
135                 Pushr4 = 0x17,
136
137                 /// <summary>
138                 /// </summary>
139                 Pushr8 = 0x18,
140
141                 /// <summary>
142                 /// </summary>
143                 Pushref = 0x19,
144
145                 /// <summary>
146                 /// </summary>
147                 Varpop = 0x1A,
148
149                 /// <summary>
150                 /// </summary>
151                 Varpush = 0x1B
152
153 #if NET_2_0
154                 ,
155                 Popref_popi_pop1 = 0x1C
156 #endif
157         }
158
159 }