StackBehaviour.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. [ComVisible (true)]
  32. [Serializable]
  33. public enum StackBehaviour {
  34. /// <summary>
  35. /// </summary>
  36. Pop0 = 0,
  37. /// <summary>
  38. /// </summary>
  39. Pop1 = 1,
  40. /// <summary>
  41. /// </summary>
  42. Pop1_pop1 = 2,
  43. /// <summary>
  44. /// </summary>
  45. Popi = 3,
  46. /// <summary>
  47. /// </summary>
  48. Popi_pop1 = 4,
  49. /// <summary>
  50. /// </summary>
  51. Popi_popi = 5,
  52. /// <summary>
  53. /// </summary>
  54. Popi_popi8 = 6,
  55. /// <summary>
  56. /// </summary>
  57. Popi_popi_popi = 7,
  58. /// <summary>
  59. /// </summary>
  60. Popi_popr4 = 8,
  61. /// <summary>
  62. /// </summary>
  63. Popi_popr8 = 9,
  64. /// <summary>
  65. /// </summary>
  66. Popref = 0x0A,
  67. /// <summary>
  68. /// </summary>
  69. Popref_pop1 = 0x0B,
  70. /// <summary>
  71. /// </summary>
  72. Popref_popi = 0x0C,
  73. /// <summary>
  74. /// </summary>
  75. Popref_popi_popi = 0x0D,
  76. /// <summary>
  77. /// </summary>
  78. Popref_popi_popi8 = 0x0E,
  79. /// <summary>
  80. /// </summary>
  81. Popref_popi_popr4 = 0x0F,
  82. /// <summary>
  83. /// </summary>
  84. Popref_popi_popr8 = 0x10,
  85. /// <summary>
  86. /// </summary>
  87. Popref_popi_popref = 0x11,
  88. /// <summary>
  89. /// </summary>
  90. Push0 = 0x12,
  91. /// <summary>
  92. /// </summary>
  93. Push1 = 0x13,
  94. /// <summary>
  95. /// </summary>
  96. Push1_push1 = 0x14,
  97. /// <summary>
  98. /// </summary>
  99. Pushi = 0x15,
  100. /// <summary>
  101. /// </summary>
  102. Pushi8 = 0x16,
  103. /// <summary>
  104. /// </summary>
  105. Pushr4 = 0x17,
  106. /// <summary>
  107. /// </summary>
  108. Pushr8 = 0x18,
  109. /// <summary>
  110. /// </summary>
  111. Pushref = 0x19,
  112. /// <summary>
  113. /// </summary>
  114. Varpop = 0x1A,
  115. /// <summary>
  116. /// </summary>
  117. Varpush = 0x1B,
  118. Popref_popi_pop1 = 0x1C
  119. }
  120. }