Lines Matching refs:ZEND_OP1_LITERAL

169 					ZVAL_COPY(&c, &ZEND_OP1_LITERAL(src));  in zend_optimize_block()
172 literal_dtor(&ZEND_OP1_LITERAL(src)); in zend_optimize_block()
192 ZVAL_COPY(&c, &ZEND_OP1_LITERAL(src)); in zend_optimize_block()
195 literal_dtor(&ZEND_OP1_LITERAL(src)); in zend_optimize_block()
218 Z_TYPE(ZEND_OP1_LITERAL(opline)) != IS_DOUBLE) { in zend_optimize_block()
226 if (Z_TYPE(ZEND_OP1_LITERAL(opline)) != IS_STRING) { in zend_optimize_block()
227 convert_to_string(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
229 if (Z_TYPE(ZEND_OP1_LITERAL(last_op)) != IS_STRING) { in zend_optimize_block()
230 convert_to_string(&ZEND_OP1_LITERAL(last_op)); in zend_optimize_block()
232 old_len = Z_STRLEN(ZEND_OP1_LITERAL(last_op)); in zend_optimize_block()
233 l = old_len + Z_STRLEN(ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
234 if (!Z_REFCOUNTED(ZEND_OP1_LITERAL(last_op))) { in zend_optimize_block()
236 memcpy(ZSTR_VAL(tmp), Z_STRVAL(ZEND_OP1_LITERAL(last_op)), old_len); in zend_optimize_block()
237 Z_STR(ZEND_OP1_LITERAL(last_op)) = tmp; in zend_optimize_block()
239 … Z_STR(ZEND_OP1_LITERAL(last_op)) = zend_string_extend(Z_STR(ZEND_OP1_LITERAL(last_op)), l, 0); in zend_optimize_block()
241 Z_TYPE_INFO(ZEND_OP1_LITERAL(last_op)) = IS_STRING_EX; in zend_optimize_block()
242 …memcpy(Z_STRVAL(ZEND_OP1_LITERAL(last_op)) + old_len, Z_STRVAL(ZEND_OP1_LITERAL(opline)), Z_STRLEN… in zend_optimize_block()
243 Z_STRVAL(ZEND_OP1_LITERAL(last_op))[l] = '\0'; in zend_optimize_block()
244 zval_ptr_dtor_nogc(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
245 … ZVAL_STR(&ZEND_OP1_LITERAL(opline), zend_new_interned_string(Z_STR(ZEND_OP1_LITERAL(last_op)))); in zend_optimize_block()
246 ZVAL_NULL(&ZEND_OP1_LITERAL(last_op)); in zend_optimize_block()
331 char *fname = FUNCTION_CACHE->funcs[Z_LVAL(ZEND_OP1_LITERAL(fcall))].function_name; in zend_optimize_block()
332 int flen = FUNCTION_CACHE->funcs[Z_LVAL(ZEND_OP1_LITERAL(fcall))].name_len; in zend_optimize_block()
350 ZEND_OP1_LITERAL(opline) = zend_optimizer_add_literal(op_array, &c); in zend_optimize_block()
384 int target = get_const_switch_target(cfg, op_array, block, opline, &ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
385 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
419 (Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_FALSE || in zend_optimize_block()
420 Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_TRUE)) { in zend_optimize_block()
425 ((opline->opcode != ZEND_IS_NOT_EQUAL) == ((Z_TYPE(ZEND_OP1_LITERAL(opline))) == IS_TRUE)) ? in zend_optimize_block()
573 if (zend_is_true(&ZEND_OP1_LITERAL(opline)) == in zend_optimize_block()
622 if (zend_is_true(&ZEND_OP1_LITERAL(opline))) { in zend_optimize_block()
669 if (zend_is_true(&ZEND_OP1_LITERAL(opline)) == in zend_optimize_block()
674 zval_ptr_dtor_nogc(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
675 ZVAL_BOOL(&ZEND_OP1_LITERAL(opline), opline->opcode == ZEND_JMPZ_EX); in zend_optimize_block()
776 Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING && in zend_optimize_block()
777 Z_STRLEN(ZEND_OP1_LITERAL(opline)) == 0) { in zend_optimize_block()
779 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
837 …if (zend_optimizer_eval_binary_op(&result, opline->opcode, &ZEND_OP1_LITERAL(opline), &ZEND_OP2_LI… in zend_optimize_block()
838 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
854 … if (zend_optimizer_eval_unary_op(&result, opline->opcode, &ZEND_OP1_LITERAL(opline)) == SUCCESS) { in zend_optimize_block()
855 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
868 …if (zend_optimizer_eval_cast(&result, opline->extended_value, &ZEND_OP1_LITERAL(opline)) == SUCCES… in zend_optimize_block()
869 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
882 if (zend_optimizer_eval_strlen(&result, &ZEND_OP1_LITERAL(opline)) == SUCCESS) { in zend_optimize_block()
883 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
1003 literal_dtor(&ZEND_OP1_LITERAL(op)); in assemble_code_blocks()
1265 ZVAL_COPY(&zv, &ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1282 ZVAL_COPY(&zv, &ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1733 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_t_usage()
1810 literal_dtor(&ZEND_OP1_LITERAL(op)); in zend_merge_blocks()