1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #ifndef ZEND_VM_OPCODES_H
22 #define ZEND_VM_OPCODES_H
23
24 #define ZEND_VM_SPEC 1
25 #define ZEND_VM_LINES 0
26 #define ZEND_VM_KIND_CALL 1
27 #define ZEND_VM_KIND_SWITCH 2
28 #define ZEND_VM_KIND_GOTO 3
29 #define ZEND_VM_KIND ZEND_VM_KIND_CALL
30
31 BEGIN_EXTERN_C()
32
33 ZEND_API const char *zend_get_opcode_name(zend_uchar opcode);
34
35 END_EXTERN_C()
36
37 #define ZEND_NOP 0
38 #define ZEND_ADD 1
39 #define ZEND_SUB 2
40 #define ZEND_MUL 3
41 #define ZEND_DIV 4
42 #define ZEND_MOD 5
43 #define ZEND_SL 6
44 #define ZEND_SR 7
45 #define ZEND_CONCAT 8
46 #define ZEND_BW_OR 9
47 #define ZEND_BW_AND 10
48 #define ZEND_BW_XOR 11
49 #define ZEND_BW_NOT 12
50 #define ZEND_BOOL_NOT 13
51 #define ZEND_BOOL_XOR 14
52 #define ZEND_IS_IDENTICAL 15
53 #define ZEND_IS_NOT_IDENTICAL 16
54 #define ZEND_IS_EQUAL 17
55 #define ZEND_IS_NOT_EQUAL 18
56 #define ZEND_IS_SMALLER 19
57 #define ZEND_IS_SMALLER_OR_EQUAL 20
58 #define ZEND_CAST 21
59 #define ZEND_QM_ASSIGN 22
60 #define ZEND_ASSIGN_ADD 23
61 #define ZEND_ASSIGN_SUB 24
62 #define ZEND_ASSIGN_MUL 25
63 #define ZEND_ASSIGN_DIV 26
64 #define ZEND_ASSIGN_MOD 27
65 #define ZEND_ASSIGN_SL 28
66 #define ZEND_ASSIGN_SR 29
67 #define ZEND_ASSIGN_CONCAT 30
68 #define ZEND_ASSIGN_BW_OR 31
69 #define ZEND_ASSIGN_BW_AND 32
70 #define ZEND_ASSIGN_BW_XOR 33
71 #define ZEND_PRE_INC 34
72 #define ZEND_PRE_DEC 35
73 #define ZEND_POST_INC 36
74 #define ZEND_POST_DEC 37
75 #define ZEND_ASSIGN 38
76 #define ZEND_ASSIGN_REF 39
77 #define ZEND_ECHO 40
78 #define ZEND_JMP 42
79 #define ZEND_JMPZ 43
80 #define ZEND_JMPNZ 44
81 #define ZEND_JMPZNZ 45
82 #define ZEND_JMPZ_EX 46
83 #define ZEND_JMPNZ_EX 47
84 #define ZEND_CASE 48
85 #define ZEND_BOOL 52
86 #define ZEND_FAST_CONCAT 53
87 #define ZEND_ROPE_INIT 54
88 #define ZEND_ROPE_ADD 55
89 #define ZEND_ROPE_END 56
90 #define ZEND_BEGIN_SILENCE 57
91 #define ZEND_END_SILENCE 58
92 #define ZEND_INIT_FCALL_BY_NAME 59
93 #define ZEND_DO_FCALL 60
94 #define ZEND_INIT_FCALL 61
95 #define ZEND_RETURN 62
96 #define ZEND_RECV 63
97 #define ZEND_RECV_INIT 64
98 #define ZEND_SEND_VAL 65
99 #define ZEND_SEND_VAR_EX 66
100 #define ZEND_SEND_REF 67
101 #define ZEND_NEW 68
102 #define ZEND_INIT_NS_FCALL_BY_NAME 69
103 #define ZEND_FREE 70
104 #define ZEND_INIT_ARRAY 71
105 #define ZEND_ADD_ARRAY_ELEMENT 72
106 #define ZEND_INCLUDE_OR_EVAL 73
107 #define ZEND_UNSET_VAR 74
108 #define ZEND_UNSET_DIM 75
109 #define ZEND_UNSET_OBJ 76
110 #define ZEND_FE_RESET_R 77
111 #define ZEND_FE_FETCH_R 78
112 #define ZEND_EXIT 79
113 #define ZEND_FETCH_R 80
114 #define ZEND_FETCH_DIM_R 81
115 #define ZEND_FETCH_OBJ_R 82
116 #define ZEND_FETCH_W 83
117 #define ZEND_FETCH_DIM_W 84
118 #define ZEND_FETCH_OBJ_W 85
119 #define ZEND_FETCH_RW 86
120 #define ZEND_FETCH_DIM_RW 87
121 #define ZEND_FETCH_OBJ_RW 88
122 #define ZEND_FETCH_IS 89
123 #define ZEND_FETCH_DIM_IS 90
124 #define ZEND_FETCH_OBJ_IS 91
125 #define ZEND_FETCH_FUNC_ARG 92
126 #define ZEND_FETCH_DIM_FUNC_ARG 93
127 #define ZEND_FETCH_OBJ_FUNC_ARG 94
128 #define ZEND_FETCH_UNSET 95
129 #define ZEND_FETCH_DIM_UNSET 96
130 #define ZEND_FETCH_OBJ_UNSET 97
131 #define ZEND_FETCH_LIST 98
132 #define ZEND_FETCH_CONSTANT 99
133 #define ZEND_EXT_STMT 101
134 #define ZEND_EXT_FCALL_BEGIN 102
135 #define ZEND_EXT_FCALL_END 103
136 #define ZEND_EXT_NOP 104
137 #define ZEND_TICKS 105
138 #define ZEND_SEND_VAR_NO_REF 106
139 #define ZEND_CATCH 107
140 #define ZEND_THROW 108
141 #define ZEND_FETCH_CLASS 109
142 #define ZEND_CLONE 110
143 #define ZEND_RETURN_BY_REF 111
144 #define ZEND_INIT_METHOD_CALL 112
145 #define ZEND_INIT_STATIC_METHOD_CALL 113
146 #define ZEND_ISSET_ISEMPTY_VAR 114
147 #define ZEND_ISSET_ISEMPTY_DIM_OBJ 115
148 #define ZEND_SEND_VAL_EX 116
149 #define ZEND_SEND_VAR 117
150 #define ZEND_INIT_USER_CALL 118
151 #define ZEND_SEND_ARRAY 119
152 #define ZEND_SEND_USER 120
153 #define ZEND_STRLEN 121
154 #define ZEND_DEFINED 122
155 #define ZEND_TYPE_CHECK 123
156 #define ZEND_VERIFY_RETURN_TYPE 124
157 #define ZEND_FE_RESET_RW 125
158 #define ZEND_FE_FETCH_RW 126
159 #define ZEND_FE_FREE 127
160 #define ZEND_INIT_DYNAMIC_CALL 128
161 #define ZEND_DO_ICALL 129
162 #define ZEND_DO_UCALL 130
163 #define ZEND_DO_FCALL_BY_NAME 131
164 #define ZEND_PRE_INC_OBJ 132
165 #define ZEND_PRE_DEC_OBJ 133
166 #define ZEND_POST_INC_OBJ 134
167 #define ZEND_POST_DEC_OBJ 135
168 #define ZEND_ASSIGN_OBJ 136
169 #define ZEND_OP_DATA 137
170 #define ZEND_INSTANCEOF 138
171 #define ZEND_DECLARE_CLASS 139
172 #define ZEND_DECLARE_INHERITED_CLASS 140
173 #define ZEND_DECLARE_FUNCTION 141
174 #define ZEND_YIELD_FROM 142
175 #define ZEND_DECLARE_CONST 143
176 #define ZEND_ADD_INTERFACE 144
177 #define ZEND_DECLARE_INHERITED_CLASS_DELAYED 145
178 #define ZEND_VERIFY_ABSTRACT_CLASS 146
179 #define ZEND_ASSIGN_DIM 147
180 #define ZEND_ISSET_ISEMPTY_PROP_OBJ 148
181 #define ZEND_HANDLE_EXCEPTION 149
182 #define ZEND_USER_OPCODE 150
183 #define ZEND_ASSERT_CHECK 151
184 #define ZEND_JMP_SET 152
185 #define ZEND_DECLARE_LAMBDA_FUNCTION 153
186 #define ZEND_ADD_TRAIT 154
187 #define ZEND_BIND_TRAITS 155
188 #define ZEND_SEPARATE 156
189 #define ZEND_FETCH_CLASS_NAME 157
190 #define ZEND_CALL_TRAMPOLINE 158
191 #define ZEND_DISCARD_EXCEPTION 159
192 #define ZEND_YIELD 160
193 #define ZEND_GENERATOR_RETURN 161
194 #define ZEND_FAST_CALL 162
195 #define ZEND_FAST_RET 163
196 #define ZEND_RECV_VARIADIC 164
197 #define ZEND_SEND_UNPACK 165
198 #define ZEND_POW 166
199 #define ZEND_ASSIGN_POW 167
200 #define ZEND_BIND_GLOBAL 168
201 #define ZEND_COALESCE 169
202 #define ZEND_SPACESHIP 170
203 #define ZEND_DECLARE_ANON_CLASS 171
204 #define ZEND_DECLARE_ANON_INHERITED_CLASS 172
205
206 #endif