Lines Matching refs:opcode
69 switch (opline->opcode) { in zend_optimizer_pass3()
85 while (next_opline < end && next_opline->opcode == ZEND_NOP) { in zend_optimizer_pass3()
89 if (next_opline >= end || next_opline->opcode != ZEND_ASSIGN) { in zend_optimizer_pass3()
95 (opline->opcode == ZEND_ADD || in zend_optimizer_pass3()
96 opline->opcode == ZEND_BW_OR || in zend_optimizer_pass3()
97 opline->opcode == ZEND_BW_AND || in zend_optimizer_pass3()
98 opline->opcode == ZEND_BW_XOR)) { in zend_optimizer_pass3()
105 if (opline->opcode != ZEND_ADD in zend_optimizer_pass3()
116 switch (opline->opcode) { in zend_optimizer_pass3()
118 opline->opcode = ZEND_ASSIGN_ADD; in zend_optimizer_pass3()
121 opline->opcode = ZEND_ASSIGN_SUB; in zend_optimizer_pass3()
124 opline->opcode = ZEND_ASSIGN_MUL; in zend_optimizer_pass3()
127 opline->opcode = ZEND_ASSIGN_DIV; in zend_optimizer_pass3()
130 opline->opcode = ZEND_ASSIGN_MOD; in zend_optimizer_pass3()
133 opline->opcode = ZEND_ASSIGN_POW; in zend_optimizer_pass3()
136 opline->opcode = ZEND_ASSIGN_CONCAT; in zend_optimizer_pass3()
139 opline->opcode = ZEND_ASSIGN_SL; in zend_optimizer_pass3()
142 opline->opcode = ZEND_ASSIGN_SR; in zend_optimizer_pass3()
145 opline->opcode = ZEND_ASSIGN_BW_OR; in zend_optimizer_pass3()
148 opline->opcode = ZEND_ASSIGN_BW_AND; in zend_optimizer_pass3()
151 opline->opcode = ZEND_ASSIGN_BW_XOR; in zend_optimizer_pass3()
175 && ZEND_OP1_JMP_ADDR(opline)->opcode == ZEND_JMP) { in zend_optimizer_pass3()
190 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
206 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
211 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
217 } else if (target->opcode == opline->opcode + 3 && in zend_optimizer_pass3()
222 opline->opcode += 3; in zend_optimizer_pass3()
225 } else if (target->opcode == INV_COND(opline->opcode) && in zend_optimizer_pass3()
231 } else if (target->opcode == INV_COND_EX(opline->opcode) && in zend_optimizer_pass3()
236 opline->opcode += 3; in zend_optimizer_pass3()
260 opline->opcode = ZEND_BOOL; in zend_optimizer_pass3()
269 if (target->opcode == opline->opcode-3 && in zend_optimizer_pass3()
275 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
282 } else if (target->opcode == ZEND_JMPZNZ && in zend_optimizer_pass3()
288 if (opline->opcode == ZEND_JMPZ_EX) { in zend_optimizer_pass3()
295 } else if ((target->opcode == INV_EX_COND_EX(opline->opcode) || in zend_optimizer_pass3()
296 target->opcode == INV_EX_COND(opline->opcode)) && in zend_optimizer_pass3()
302 } else if (target->opcode == INV_EX_COND(opline->opcode) && in zend_optimizer_pass3()
308 } else if (target->opcode == INV_EX_COND_EX(opline->opcode) && in zend_optimizer_pass3()
315 } else if (target->opcode == ZEND_BOOL && in zend_optimizer_pass3()
338 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3()
339 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3()
340 op->opcode == ZEND_JMPZ_EX || in zend_optimizer_pass3()
341 op->opcode == ZEND_JMPNZ || in zend_optimizer_pass3()
342 op->opcode == ZEND_JMPNZ_EX || in zend_optimizer_pass3()
343 op->opcode == ZEND_JMPZNZ || in zend_optimizer_pass3()
344 op->opcode == ZEND_CASE || in zend_optimizer_pass3()
345 op->opcode == ZEND_RETURN || in zend_optimizer_pass3()
346 op->opcode == ZEND_RETURN_BY_REF || in zend_optimizer_pass3()
347 op->opcode == ZEND_FAST_RET || in zend_optimizer_pass3()
348 op->opcode == ZEND_FE_FETCH_R || in zend_optimizer_pass3()
349 op->opcode == ZEND_FE_FETCH_RW || in zend_optimizer_pass3()
350 op->opcode == ZEND_EXIT) { in zend_optimizer_pass3()
372 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3()
373 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3()
374 op->opcode == ZEND_JMPZ_EX || in zend_optimizer_pass3()
375 op->opcode == ZEND_JMPNZ || in zend_optimizer_pass3()
376 op->opcode == ZEND_JMPNZ_EX || in zend_optimizer_pass3()
377 op->opcode == ZEND_JMPZNZ || in zend_optimizer_pass3()
378 op->opcode == ZEND_CASE || in zend_optimizer_pass3()
379 op->opcode == ZEND_RETURN || in zend_optimizer_pass3()
380 op->opcode == ZEND_RETURN_BY_REF || in zend_optimizer_pass3()
381 op->opcode == ZEND_FAST_RET || in zend_optimizer_pass3()
382 op->opcode == ZEND_FE_FETCH_R || in zend_optimizer_pass3()
383 op->opcode == ZEND_FE_FETCH_RW || in zend_optimizer_pass3()
384 op->opcode == ZEND_EXIT) { in zend_optimizer_pass3()
399 opline->opcode = opline->opcode-3; /* JMP_EX -> JMP */ in zend_optimizer_pass3()
414 && ZEND_OP2_JMP_ADDR(opline)->opcode == ZEND_JMP) { in zend_optimizer_pass3()
422 && ZEND_OFFSET_TO_OPLINE(opline, opline->extended_value)->opcode == ZEND_JMP) { in zend_optimizer_pass3()
437 if (next_op->opcode == ZEND_FREE && in zend_optimizer_pass3()
440 opline->opcode -= 2; in zend_optimizer_pass3()