zend_vm_opcodes.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Zend Engine |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.00 of the Zend license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.zend.com/license/2_00.txt. |
  11. | If you did not receive a copy of the Zend license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@zend.com so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Andi Gutmans <andi@zend.com> |
  16. | Zeev Suraski <zeev@zend.com> |
  17. | Dmitry Stogov <dmitry@zend.com> |
  18. +----------------------------------------------------------------------+
  19. */
  20. #ifndef ZEND_VM_OPCODES_H
  21. #define ZEND_VM_OPCODES_H
  22. BEGIN_EXTERN_C()
  23. ZEND_API const char *zend_get_opcode_name(zend_uchar opcode);
  24. END_EXTERN_C()
  25. #define ZEND_NOP 0
  26. #define ZEND_ADD 1
  27. #define ZEND_SUB 2
  28. #define ZEND_MUL 3
  29. #define ZEND_DIV 4
  30. #define ZEND_MOD 5
  31. #define ZEND_SL 6
  32. #define ZEND_SR 7
  33. #define ZEND_CONCAT 8
  34. #define ZEND_BW_OR 9
  35. #define ZEND_BW_AND 10
  36. #define ZEND_BW_XOR 11
  37. #define ZEND_BW_NOT 12
  38. #define ZEND_BOOL_NOT 13
  39. #define ZEND_BOOL_XOR 14
  40. #define ZEND_IS_IDENTICAL 15
  41. #define ZEND_IS_NOT_IDENTICAL 16
  42. #define ZEND_IS_EQUAL 17
  43. #define ZEND_IS_NOT_EQUAL 18
  44. #define ZEND_IS_SMALLER 19
  45. #define ZEND_IS_SMALLER_OR_EQUAL 20
  46. #define ZEND_CAST 21
  47. #define ZEND_QM_ASSIGN 22
  48. #define ZEND_ASSIGN_ADD 23
  49. #define ZEND_ASSIGN_SUB 24
  50. #define ZEND_ASSIGN_MUL 25
  51. #define ZEND_ASSIGN_DIV 26
  52. #define ZEND_ASSIGN_MOD 27
  53. #define ZEND_ASSIGN_SL 28
  54. #define ZEND_ASSIGN_SR 29
  55. #define ZEND_ASSIGN_CONCAT 30
  56. #define ZEND_ASSIGN_BW_OR 31
  57. #define ZEND_ASSIGN_BW_AND 32
  58. #define ZEND_ASSIGN_BW_XOR 33
  59. #define ZEND_PRE_INC 34
  60. #define ZEND_PRE_DEC 35
  61. #define ZEND_POST_INC 36
  62. #define ZEND_POST_DEC 37
  63. #define ZEND_ASSIGN 38
  64. #define ZEND_ASSIGN_REF 39
  65. #define ZEND_ECHO 40
  66. #define ZEND_PRINT 41
  67. #define ZEND_JMP 42
  68. #define ZEND_JMPZ 43
  69. #define ZEND_JMPNZ 44
  70. #define ZEND_JMPZNZ 45
  71. #define ZEND_JMPZ_EX 46
  72. #define ZEND_JMPNZ_EX 47
  73. #define ZEND_CASE 48
  74. #define ZEND_SWITCH_FREE 49
  75. #define ZEND_BRK 50
  76. #define ZEND_CONT 51
  77. #define ZEND_BOOL 52
  78. #define ZEND_INIT_STRING 53
  79. #define ZEND_ADD_CHAR 54
  80. #define ZEND_ADD_STRING 55
  81. #define ZEND_ADD_VAR 56
  82. #define ZEND_BEGIN_SILENCE 57
  83. #define ZEND_END_SILENCE 58
  84. #define ZEND_INIT_FCALL_BY_NAME 59
  85. #define ZEND_DO_FCALL 60
  86. #define ZEND_DO_FCALL_BY_NAME 61
  87. #define ZEND_RETURN 62
  88. #define ZEND_RECV 63
  89. #define ZEND_RECV_INIT 64
  90. #define ZEND_SEND_VAL 65
  91. #define ZEND_SEND_VAR 66
  92. #define ZEND_SEND_REF 67
  93. #define ZEND_NEW 68
  94. #define ZEND_INIT_NS_FCALL_BY_NAME 69
  95. #define ZEND_FREE 70
  96. #define ZEND_INIT_ARRAY 71
  97. #define ZEND_ADD_ARRAY_ELEMENT 72
  98. #define ZEND_INCLUDE_OR_EVAL 73
  99. #define ZEND_UNSET_VAR 74
  100. #define ZEND_UNSET_DIM 75
  101. #define ZEND_UNSET_OBJ 76
  102. #define ZEND_FE_RESET 77
  103. #define ZEND_FE_FETCH 78
  104. #define ZEND_EXIT 79
  105. #define ZEND_FETCH_R 80
  106. #define ZEND_FETCH_DIM_R 81
  107. #define ZEND_FETCH_OBJ_R 82
  108. #define ZEND_FETCH_W 83
  109. #define ZEND_FETCH_DIM_W 84
  110. #define ZEND_FETCH_OBJ_W 85
  111. #define ZEND_FETCH_RW 86
  112. #define ZEND_FETCH_DIM_RW 87
  113. #define ZEND_FETCH_OBJ_RW 88
  114. #define ZEND_FETCH_IS 89
  115. #define ZEND_FETCH_DIM_IS 90
  116. #define ZEND_FETCH_OBJ_IS 91
  117. #define ZEND_FETCH_FUNC_ARG 92
  118. #define ZEND_FETCH_DIM_FUNC_ARG 93
  119. #define ZEND_FETCH_OBJ_FUNC_ARG 94
  120. #define ZEND_FETCH_UNSET 95
  121. #define ZEND_FETCH_DIM_UNSET 96
  122. #define ZEND_FETCH_OBJ_UNSET 97
  123. #define ZEND_FETCH_DIM_TMP_VAR 98
  124. #define ZEND_FETCH_CONSTANT 99
  125. #define ZEND_GOTO 100
  126. #define ZEND_EXT_STMT 101
  127. #define ZEND_EXT_FCALL_BEGIN 102
  128. #define ZEND_EXT_FCALL_END 103
  129. #define ZEND_EXT_NOP 104
  130. #define ZEND_TICKS 105
  131. #define ZEND_SEND_VAR_NO_REF 106
  132. #define ZEND_CATCH 107
  133. #define ZEND_THROW 108
  134. #define ZEND_FETCH_CLASS 109
  135. #define ZEND_CLONE 110
  136. #define ZEND_RETURN_BY_REF 111
  137. #define ZEND_INIT_METHOD_CALL 112
  138. #define ZEND_INIT_STATIC_METHOD_CALL 113
  139. #define ZEND_ISSET_ISEMPTY_VAR 114
  140. #define ZEND_ISSET_ISEMPTY_DIM_OBJ 115
  141. #define ZEND_PRE_INC_OBJ 132
  142. #define ZEND_PRE_DEC_OBJ 133
  143. #define ZEND_POST_INC_OBJ 134
  144. #define ZEND_POST_DEC_OBJ 135
  145. #define ZEND_ASSIGN_OBJ 136
  146. #define ZEND_INSTANCEOF 138
  147. #define ZEND_DECLARE_CLASS 139
  148. #define ZEND_DECLARE_INHERITED_CLASS 140
  149. #define ZEND_DECLARE_FUNCTION 141
  150. #define ZEND_RAISE_ABSTRACT_ERROR 142
  151. #define ZEND_DECLARE_CONST 143
  152. #define ZEND_ADD_INTERFACE 144
  153. #define ZEND_DECLARE_INHERITED_CLASS_DELAYED 145
  154. #define ZEND_VERIFY_ABSTRACT_CLASS 146
  155. #define ZEND_ASSIGN_DIM 147
  156. #define ZEND_ISSET_ISEMPTY_PROP_OBJ 148
  157. #define ZEND_HANDLE_EXCEPTION 149
  158. #define ZEND_USER_OPCODE 150
  159. #define ZEND_JMP_SET 152
  160. #define ZEND_DECLARE_LAMBDA_FUNCTION 153
  161. #define ZEND_ADD_TRAIT 154
  162. #define ZEND_BIND_TRAITS 155
  163. #define ZEND_SEPARATE 156
  164. #define ZEND_QM_ASSIGN_VAR 157
  165. #define ZEND_JMP_SET_VAR 158
  166. #define ZEND_DISCARD_EXCEPTION 159
  167. #define ZEND_YIELD 160
  168. #define ZEND_GENERATOR_RETURN 161
  169. #define ZEND_FAST_CALL 162
  170. #define ZEND_FAST_RET 163
  171. #define ZEND_RECV_VARIADIC 164
  172. #define ZEND_SEND_UNPACK 165
  173. #define ZEND_POW 166
  174. #define ZEND_ASSIGN_POW 167
  175. #endif