Lines Matching refs:opcode

72 		switch (opline->opcode) {  in zend_optimizer_pass3()
88 while (next_opline < end && next_opline->opcode == ZEND_NOP) { in zend_optimizer_pass3()
92 if (next_opline >= end || next_opline->opcode != ZEND_ASSIGN) { in zend_optimizer_pass3()
98 (opline->opcode == ZEND_ADD || in zend_optimizer_pass3()
99 opline->opcode == ZEND_MUL || in zend_optimizer_pass3()
100 opline->opcode == ZEND_BW_OR || in zend_optimizer_pass3()
101 opline->opcode == ZEND_BW_AND || in zend_optimizer_pass3()
102 opline->opcode == ZEND_BW_XOR)) { in zend_optimizer_pass3()
109 if (opline->opcode != ZEND_ADD in zend_optimizer_pass3()
120 switch (opline->opcode) { in zend_optimizer_pass3()
122 opline->opcode = ZEND_ASSIGN_ADD; in zend_optimizer_pass3()
125 opline->opcode = ZEND_ASSIGN_SUB; in zend_optimizer_pass3()
128 opline->opcode = ZEND_ASSIGN_MUL; in zend_optimizer_pass3()
131 opline->opcode = ZEND_ASSIGN_DIV; in zend_optimizer_pass3()
134 opline->opcode = ZEND_ASSIGN_MOD; in zend_optimizer_pass3()
137 opline->opcode = ZEND_ASSIGN_POW; in zend_optimizer_pass3()
140 opline->opcode = ZEND_ASSIGN_CONCAT; in zend_optimizer_pass3()
143 opline->opcode = ZEND_ASSIGN_SL; in zend_optimizer_pass3()
146 opline->opcode = ZEND_ASSIGN_SR; in zend_optimizer_pass3()
149 opline->opcode = ZEND_ASSIGN_BW_OR; in zend_optimizer_pass3()
152 opline->opcode = ZEND_ASSIGN_BW_AND; in zend_optimizer_pass3()
155 opline->opcode = ZEND_ASSIGN_BW_XOR; in zend_optimizer_pass3()
179 && ZEND_OP1_JMP_ADDR(opline)->opcode == ZEND_JMP) { in zend_optimizer_pass3()
194 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
210 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
215 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
221 } else if (target->opcode == opline->opcode + 3 && in zend_optimizer_pass3()
226 opline->opcode += 3; in zend_optimizer_pass3()
229 } else if (target->opcode == INV_COND(opline->opcode) && in zend_optimizer_pass3()
235 } else if (target->opcode == INV_COND_EX(opline->opcode) && in zend_optimizer_pass3()
240 opline->opcode += 3; in zend_optimizer_pass3()
264 opline->opcode = ZEND_BOOL; in zend_optimizer_pass3()
273 if (SAME_OPCODE_EX(opline->opcode, target->opcode) && in zend_optimizer_pass3()
276 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()
318 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3()
319 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3()
320 op->opcode == ZEND_JMPZ_EX || in zend_optimizer_pass3()
321 op->opcode == ZEND_JMPNZ || in zend_optimizer_pass3()
322 op->opcode == ZEND_JMPNZ_EX || in zend_optimizer_pass3()
323 op->opcode == ZEND_JMPZNZ || in zend_optimizer_pass3()
324 op->opcode == ZEND_CASE || in zend_optimizer_pass3()
325 op->opcode == ZEND_RETURN || in zend_optimizer_pass3()
326 op->opcode == ZEND_RETURN_BY_REF || in zend_optimizer_pass3()
327 op->opcode == ZEND_FAST_RET || in zend_optimizer_pass3()
328 op->opcode == ZEND_FE_FETCH_R || in zend_optimizer_pass3()
329 op->opcode == ZEND_FE_FETCH_RW || in zend_optimizer_pass3()
330 op->opcode == ZEND_EXIT) { in zend_optimizer_pass3()
352 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3()
353 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3()
354 op->opcode == ZEND_JMPZ_EX || in zend_optimizer_pass3()
355 op->opcode == ZEND_JMPNZ || in zend_optimizer_pass3()
356 op->opcode == ZEND_JMPNZ_EX || in zend_optimizer_pass3()
357 op->opcode == ZEND_JMPZNZ || in zend_optimizer_pass3()
358 op->opcode == ZEND_CASE || in zend_optimizer_pass3()
359 op->opcode == ZEND_RETURN || in zend_optimizer_pass3()
360 op->opcode == ZEND_RETURN_BY_REF || in zend_optimizer_pass3()
361 op->opcode == ZEND_FAST_RET || in zend_optimizer_pass3()
362 op->opcode == ZEND_FE_FETCH_R || in zend_optimizer_pass3()
363 op->opcode == ZEND_FE_FETCH_RW || in zend_optimizer_pass3()
364 op->opcode == ZEND_EXIT) { in zend_optimizer_pass3()
379 opline->opcode = opline->opcode-3; /* JMP_EX -> JMP */ in zend_optimizer_pass3()
394 && ZEND_OP2_JMP_ADDR(opline)->opcode == ZEND_JMP) { in zend_optimizer_pass3()
402 && ZEND_OFFSET_TO_OPLINE(opline, opline->extended_value)->opcode == ZEND_JMP) { in zend_optimizer_pass3()
417 if (next_op->opcode == ZEND_FREE && in zend_optimizer_pass3()
420 opline->opcode -= 2; in zend_optimizer_pass3()