Lines Matching refs:ZEND_OP1_LITERAL
169 zval c = ZEND_OP1_LITERAL(src); in zend_optimize_block()
174 literal_dtor(&ZEND_OP1_LITERAL(src)); in zend_optimize_block()
189 zval c = ZEND_OP1_LITERAL(src); in zend_optimize_block()
195 literal_dtor(&ZEND_OP1_LITERAL(src)); in zend_optimize_block()
217 Z_TYPE(ZEND_OP1_LITERAL(opline)) != IS_DOUBLE && in zend_optimize_block()
218 Z_TYPE(ZEND_OP1_LITERAL(last_op)) != IS_DOUBLE) { in zend_optimize_block()
225 if (Z_TYPE(ZEND_OP1_LITERAL(opline)) != IS_STRING) { in zend_optimize_block()
226 convert_to_string_safe(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
228 if (Z_TYPE(ZEND_OP1_LITERAL(last_op)) != IS_STRING) { in zend_optimize_block()
229 convert_to_string_safe(&ZEND_OP1_LITERAL(last_op)); in zend_optimize_block()
231 old_len = Z_STRLEN(ZEND_OP1_LITERAL(last_op)); in zend_optimize_block()
232 l = old_len + Z_STRLEN(ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
233 if (!Z_REFCOUNTED(ZEND_OP1_LITERAL(last_op))) { in zend_optimize_block()
235 memcpy(ZSTR_VAL(tmp), Z_STRVAL(ZEND_OP1_LITERAL(last_op)), old_len); in zend_optimize_block()
236 Z_STR(ZEND_OP1_LITERAL(last_op)) = tmp; in zend_optimize_block()
238 Z_STR(ZEND_OP1_LITERAL(last_op)) = zend_string_extend(Z_STR(ZEND_OP1_LITERAL(last_op)), l, 0); in zend_optimize_block()
240 Z_TYPE_INFO(ZEND_OP1_LITERAL(last_op)) = IS_STRING_EX; in zend_optimize_block()
241 …memcpy(Z_STRVAL(ZEND_OP1_LITERAL(last_op)) + old_len, Z_STRVAL(ZEND_OP1_LITERAL(opline)), Z_STRLEN… in zend_optimize_block()
242 Z_STRVAL(ZEND_OP1_LITERAL(last_op))[l] = '\0'; in zend_optimize_block()
243 zval_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
244 … ZVAL_STR(&ZEND_OP1_LITERAL(opline), zend_new_interned_string(Z_STR(ZEND_OP1_LITERAL(last_op)))); in zend_optimize_block()
245 ZVAL_NULL(&ZEND_OP1_LITERAL(last_op)); in zend_optimize_block()
305 char *fname = FUNCTION_CACHE->funcs[Z_LVAL(ZEND_OP1_LITERAL(fcall))].function_name; in zend_optimize_block()
306 int flen = FUNCTION_CACHE->funcs[Z_LVAL(ZEND_OP1_LITERAL(fcall))].name_len; in zend_optimize_block()
333 ZEND_OP1_LITERAL(opline) = zend_optimizer_add_literal(op_array, &c); in zend_optimize_block()
383 (Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_FALSE || in zend_optimize_block()
384 Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_TRUE)) { in zend_optimize_block()
389 ((opline->opcode != ZEND_IS_NOT_EQUAL) == ((Z_TYPE(ZEND_OP1_LITERAL(opline))) == IS_TRUE)) ? in zend_optimize_block()
640 Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING && in zend_optimize_block()
641 Z_STRLEN(ZEND_OP1_LITERAL(opline)) == 0) { in zend_optimize_block()
643 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
711 …} else if (zend_binary_op_produces_numeric_string_error(opline->opcode, &ZEND_OP1_LITERAL(opline),… in zend_optimize_block()
718 if (binary_op(&result, &ZEND_OP1_LITERAL(opline), &ZEND_OP2_LITERAL(opline)) == SUCCESS) { in zend_optimize_block()
719 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
738 unary_op(&result, &ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
739 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
742 ZVAL_COPY_VALUE(&result, &ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
744 ZVAL_NULL(&ZEND_OP1_LITERAL(opline)); in zend_optimize_block()
836 literal_dtor(&ZEND_OP1_LITERAL(op)); in assemble_code_blocks()
1074 zval zv = ZEND_OP1_LITERAL(last_op); in zend_jmp_optimization()
1090 zval zv = ZEND_OP1_LITERAL(last_op); in zend_jmp_optimization()
1157 int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1162 literal_dtor(&ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1308 int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1413 if (!zend_is_true(&ZEND_OP1_LITERAL(last_op))) { in zend_jmp_optimization()
1415 literal_dtor(&ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1423 literal_dtor(&ZEND_OP1_LITERAL(last_op)); in zend_jmp_optimization()
1677 literal_dtor(&ZEND_OP1_LITERAL(opline)); in zend_t_usage()
1753 literal_dtor(&ZEND_OP1_LITERAL(op)); in zend_merge_blocks()