Merged into single file, added assertions
[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         [ComVisible (true)]
36         [Serializable]
37         public enum StackBehaviour {
38
39                 /// <summary>
40                 /// </summary>
41                 Pop0 = 0,
42
43                 /// <summary>
44                 /// </summary>
45                 Pop1 = 1,
46
47                 /// <summary>
48                 /// </summary>
49                 Pop1_pop1 = 2,
50
51                 /// <summary>
52                 /// </summary>
53                 Popi = 3,
54
55                 /// <summary>
56                 /// </summary>
57                 Popi_pop1 = 4,
58
59                 /// <summary>
60                 /// </summary>
61                 Popi_popi = 5,
62
63                 /// <summary>
64                 /// </summary>
65                 Popi_popi8 = 6,
66
67                 /// <summary>
68                 /// </summary>
69                 Popi_popi_popi = 7,
70
71                 /// <summary>
72                 /// </summary>
73                 Popi_popr4 = 8,
74
75                 /// <summary>
76                 /// </summary>
77                 Popi_popr8 = 9,
78
79                 /// <summary>
80                 /// </summary>
81                 Popref = 0x0A,
82
83                 /// <summary>
84                 /// </summary>
85                 Popref_pop1 = 0x0B,
86
87                 /// <summary>
88                 /// </summary>
89                 Popref_popi = 0x0C,
90
91                 /// <summary>
92                 /// </summary>
93                 Popref_popi_popi = 0x0D,
94
95                 /// <summary>
96                 /// </summary>
97                 Popref_popi_popi8 = 0x0E,
98
99                 /// <summary>
100                 /// </summary>
101                 Popref_popi_popr4 = 0x0F,
102
103                 /// <summary>
104                 /// </summary>
105                 Popref_popi_popr8 = 0x10,
106
107                 /// <summary>
108                 /// </summary>
109                 Popref_popi_popref = 0x11,
110
111                 /// <summary>
112                 /// </summary>
113                 Push0 = 0x12,
114
115                 /// <summary>
116                 /// </summary>
117                 Push1 = 0x13,
118
119                 /// <summary>
120                 /// </summary>
121                 Push1_push1 = 0x14,
122
123                 /// <summary>
124                 /// </summary>
125                 Pushi = 0x15,
126
127                 /// <summary>
128                 /// </summary>
129                 Pushi8 = 0x16,
130
131                 /// <summary>
132                 /// </summary>
133                 Pushr4 = 0x17,
134
135                 /// <summary>
136                 /// </summary>
137                 Pushr8 = 0x18,
138
139                 /// <summary>
140                 /// </summary>
141                 Pushref = 0x19,
142
143                 /// <summary>
144                 /// </summary>
145                 Varpop = 0x1A,
146
147                 /// <summary>
148                 /// </summary>
149                 Varpush = 0x1B,
150                 Popref_popi_pop1 = 0x1C
151
152         }
153
154 }