Lines Matching refs:opline

156 	zend_op *opline, *end;  in zend_optimizer_compact_literals()  local
174 opline = op_array->opcodes; in zend_optimizer_compact_literals()
175 end = opline + op_array->last; in zend_optimizer_compact_literals()
176 while (opline < end) { in zend_optimizer_compact_literals()
177 switch (opline->opcode) { in zend_optimizer_compact_literals()
179 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
182 LITERAL_INFO(opline->op2.constant, 3); in zend_optimizer_compact_literals()
185 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
186 LITERAL_INFO(opline->op1.constant, 1); in zend_optimizer_compact_literals()
188 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
189 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
193 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
194 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals()
196 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
197 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
201 LITERAL_INFO(opline->op1.constant, 1); in zend_optimizer_compact_literals()
204 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals()
207 if (opline->op1.num & IS_CONSTANT_UNQUALIFIED_IN_NAMESPACE) { in zend_optimizer_compact_literals()
208 LITERAL_INFO(opline->op2.constant, 3); in zend_optimizer_compact_literals()
210 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
214 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
215 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals()
217 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
218 LITERAL_INFO(opline->op2.constant, 1); in zend_optimizer_compact_literals()
236 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
237 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
239 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
240 LITERAL_INFO(opline->op1.constant, 1); in zend_optimizer_compact_literals()
245 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
246 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
250 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
251 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals()
256 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals()
257 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
258 LITERAL_INFO(opline->op2.constant, 1); in zend_optimizer_compact_literals()
273 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
274 LITERAL_INFO(opline->op1.constant, 1); in zend_optimizer_compact_literals()
276 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
277 if (Z_EXTRA(op_array->literals[opline->op2.constant]) == ZEND_EXTRA_VALUE) { in zend_optimizer_compact_literals()
278 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
280 LITERAL_INFO(opline->op2.constant, 1); in zend_optimizer_compact_literals()
285 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
286 LITERAL_INFO(opline->op1.constant, 1); in zend_optimizer_compact_literals()
288 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
289 LITERAL_INFO(opline->op2.constant, 1); in zend_optimizer_compact_literals()
293 opline++; in zend_optimizer_compact_literals()
493 opline = op_array->opcodes; in zend_optimizer_compact_literals()
494 end = opline + op_array->last; in zend_optimizer_compact_literals()
495 while (opline < end) { in zend_optimizer_compact_literals()
496 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
497 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals()
499 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
500 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals()
502 switch (opline->opcode) { in zend_optimizer_compact_literals()
507 size_t num_classes = type_num_classes(op_array, opline->op1.num); in zend_optimizer_compact_literals()
509 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
518 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
524 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
526 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
527 (opline+1)->extended_value = add_static_slot(&hash, op_array, in zend_optimizer_compact_literals()
528 opline->op2.constant, in zend_optimizer_compact_literals()
529 opline->op1.constant, in zend_optimizer_compact_literals()
533 (opline+1)->extended_value = cache_size; in zend_optimizer_compact_literals()
536 } else if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
538 if (class_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
539 (opline+1)->extended_value = class_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
541 (opline+1)->extended_value = cache_size; in zend_optimizer_compact_literals()
542 class_slot[opline->op2.constant] = cache_size; in zend_optimizer_compact_literals()
548 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
550 if (opline->op1_type == IS_UNUSED && in zend_optimizer_compact_literals()
551 property_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
552 (opline+1)->extended_value = property_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
554 (opline+1)->extended_value = cache_size; in zend_optimizer_compact_literals()
556 if (opline->op1_type == IS_UNUSED) { in zend_optimizer_compact_literals()
557 property_slot[opline->op2.constant] = (opline+1)->extended_value; in zend_optimizer_compact_literals()
575 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
577 if (opline->op1_type == IS_UNUSED && in zend_optimizer_compact_literals()
578 property_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
579opline->extended_value = property_slot[opline->op2.constant] | (opline->extended_value & ZEND_FETC… in zend_optimizer_compact_literals()
581 opline->extended_value = cache_size | (opline->extended_value & ZEND_FETCH_OBJ_FLAGS); in zend_optimizer_compact_literals()
583 if (opline->op1_type == IS_UNUSED) { in zend_optimizer_compact_literals()
584 property_slot[opline->op2.constant] = opline->extended_value & ~ZEND_FETCH_OBJ_FLAGS; in zend_optimizer_compact_literals()
590 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
592 if (opline->op1_type == IS_UNUSED && in zend_optimizer_compact_literals()
593 property_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
594opline->extended_value = property_slot[opline->op2.constant] | (opline->extended_value & ZEND_ISEM… in zend_optimizer_compact_literals()
596 opline->extended_value = cache_size | (opline->extended_value & ZEND_ISEMPTY); in zend_optimizer_compact_literals()
598 if (opline->op1_type == IS_UNUSED) { in zend_optimizer_compact_literals()
599 property_slot[opline->op2.constant] = opline->extended_value & ~ZEND_ISEMPTY; in zend_optimizer_compact_literals()
608 if (func_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
609 opline->result.num = func_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
611 opline->result.num = cache_size; in zend_optimizer_compact_literals()
613 func_slot[opline->op2.constant] = opline->result.num; in zend_optimizer_compact_literals()
617 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
619 if (opline->op1_type == IS_UNUSED && in zend_optimizer_compact_literals()
620 method_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
621 opline->result.num = method_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
623 opline->result.num = cache_size; in zend_optimizer_compact_literals()
625 if (opline->op1_type == IS_UNUSED) { in zend_optimizer_compact_literals()
626 method_slot[opline->op2.constant] = opline->result.num; in zend_optimizer_compact_literals()
632 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
634 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
635 opline->result.num = add_static_slot(&hash, op_array, in zend_optimizer_compact_literals()
636 opline->op1.constant, in zend_optimizer_compact_literals()
637 opline->op2.constant, in zend_optimizer_compact_literals()
641 opline->result.num = cache_size; in zend_optimizer_compact_literals()
644 } else if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
646 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
647 opline->result.num = class_slot[opline->op1.constant]; in zend_optimizer_compact_literals()
649 opline->result.num = cache_size; in zend_optimizer_compact_literals()
651 class_slot[opline->op1.constant] = opline->result.num; in zend_optimizer_compact_literals()
657 if (const_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
658 opline->extended_value = const_slot[opline->op1.constant]; in zend_optimizer_compact_literals()
660 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
662 const_slot[opline->op1.constant] = opline->extended_value; in zend_optimizer_compact_literals()
667 if (const_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
668 opline->extended_value = const_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
670 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
672 const_slot[opline->op2.constant] = opline->extended_value; in zend_optimizer_compact_literals()
676 if (opline->op1_type == IS_CONST in zend_optimizer_compact_literals()
677 && opline->op2_type == IS_CONST in zend_optimizer_compact_literals()
678 && Z_TYPE(op_array->literals[opline->op2.constant]) == IS_STRING) { in zend_optimizer_compact_literals()
680 opline->extended_value = add_static_slot(&hash, op_array, in zend_optimizer_compact_literals()
681 opline->op1.constant, in zend_optimizer_compact_literals()
682 opline->op2.constant, in zend_optimizer_compact_literals()
686 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
704 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
706 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
707 opline->extended_value = add_static_slot(&hash, op_array, in zend_optimizer_compact_literals()
708 opline->op2.constant, in zend_optimizer_compact_literals()
709 opline->op1.constant, in zend_optimizer_compact_literals()
711 &cache_size) | (opline->extended_value & ZEND_FETCH_OBJ_FLAGS); in zend_optimizer_compact_literals()
713 opline->extended_value = cache_size | (opline->extended_value & ZEND_FETCH_OBJ_FLAGS); in zend_optimizer_compact_literals()
716 } else if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
718 if (class_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
719opline->extended_value = class_slot[opline->op2.constant] | (opline->extended_value & ZEND_FETCH_O… in zend_optimizer_compact_literals()
721 opline->extended_value = cache_size | (opline->extended_value & ZEND_FETCH_OBJ_FLAGS); in zend_optimizer_compact_literals()
722 class_slot[opline->op2.constant] = cache_size; in zend_optimizer_compact_literals()
729 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
731 if (class_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
732 opline->extended_value = class_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
734 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
736 class_slot[opline->op2.constant] = opline->extended_value; in zend_optimizer_compact_literals()
741 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
743 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
744 opline->op2.num = class_slot[opline->op1.constant]; in zend_optimizer_compact_literals()
746 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
748 class_slot[opline->op1.constant] = opline->op2.num; in zend_optimizer_compact_literals()
753 if (opline->op1_type == IS_CONST) { in zend_optimizer_compact_literals()
755 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
756opline->extended_value = class_slot[opline->op1.constant] | (opline->extended_value & ZEND_LAST_CA… in zend_optimizer_compact_literals()
758 opline->extended_value = cache_size | (opline->extended_value & ZEND_LAST_CATCH); in zend_optimizer_compact_literals()
760 class_slot[opline->op1.constant] = opline->extended_value & ~ZEND_LAST_CATCH; in zend_optimizer_compact_literals()
766 if (bind_var_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
767 opline->extended_value = bind_var_slot[opline->op2.constant]; in zend_optimizer_compact_literals()
769 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
771 bind_var_slot[opline->op2.constant] = opline->extended_value; in zend_optimizer_compact_literals()
777 opline->extended_value = cache_size; in zend_optimizer_compact_literals()
789 if (opline->op2_type == IS_CONST) { in zend_optimizer_compact_literals()
790 opline->result.num = cache_size; in zend_optimizer_compact_literals()
795 opline++; in zend_optimizer_compact_literals()
802 opline = op_array->opcodes; in zend_optimizer_compact_literals()
804 if (opline->opcode == ZEND_RECV_INIT) { in zend_optimizer_compact_literals()
805 zval *val = &op_array->literals[opline->op2.constant]; in zend_optimizer_compact_literals()
813 } else if (opline->opcode != ZEND_RECV) { in zend_optimizer_compact_literals()
816 opline++; in zend_optimizer_compact_literals()