2
0

StackBehaviour.cs 2.9 KB

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