Lines Matching refs:result

317 static inline zend_result ct_eval_binary_op(zval *result, zend_uchar binop, zval *op1, zval *op2) {  in ct_eval_binary_op()  argument
323 return zend_optimizer_eval_binary_op(result, binop, op1, op2); in ct_eval_binary_op()
326 static inline zend_result ct_eval_bool_cast(zval *result, zval *op) { in ct_eval_bool_cast() argument
334 ZVAL_TRUE(result); in ct_eval_bool_cast()
338 ZVAL_BOOL(result, zend_is_true(op)); in ct_eval_bool_cast()
342 static inline zend_result zval_to_string_offset(zend_long *result, zval *op) { in zval_to_string_offset() argument
345 *result = Z_LVAL_P(op); in zval_to_string_offset()
349 Z_STRVAL_P(op), Z_STRLEN_P(op), result, NULL, 0)) { in zval_to_string_offset()
358 static inline zend_result fetch_array_elem(zval **result, zval *op1, zval *op2) { in fetch_array_elem() argument
361 *result = zend_hash_find(Z_ARR_P(op1), ZSTR_EMPTY_ALLOC()); in fetch_array_elem()
364 *result = zend_hash_index_find(Z_ARR_P(op1), 0); in fetch_array_elem()
367 *result = zend_hash_index_find(Z_ARR_P(op1), 1); in fetch_array_elem()
370 *result = zend_hash_index_find(Z_ARR_P(op1), Z_LVAL_P(op2)); in fetch_array_elem()
377 *result = zend_hash_index_find(Z_ARR_P(op1), lval); in fetch_array_elem()
381 *result = zend_symtable_find(Z_ARR_P(op1), Z_STR_P(op2)); in fetch_array_elem()
388 static inline zend_result ct_eval_fetch_dim(zval *result, zval *op1, zval *op2, int support_strings… in ct_eval_fetch_dim() argument
392 ZVAL_COPY(result, value); in ct_eval_fetch_dim()
401 ZVAL_STR(result, zend_string_init(&Z_STRVAL_P(op1)[index], 1, 0)); in ct_eval_fetch_dim()
409 static inline zend_result ct_eval_isset_isempty(zval *result, uint32_t extended_value, zval *op1) { in ct_eval_isset_isempty() argument
412 ZVAL_BOOL(result, op1 && Z_TYPE_P(op1) != IS_NULL); in ct_eval_isset_isempty()
415 ZVAL_TRUE(result); in ct_eval_isset_isempty()
418 ZVAL_BOOL(result, Z_TYPE(zv) == IS_FALSE); in ct_eval_isset_isempty()
425 static inline zend_result ct_eval_isset_dim(zval *result, uint32_t extended_value, zval *op1, zval … in ct_eval_isset_dim() argument
434 return ct_eval_isset_isempty(result, extended_value, value); in ct_eval_isset_dim()
439 ZVAL_BOOL(result, (extended_value & ZEND_ISEMPTY)); in ct_eval_isset_dim()
444 static inline zend_result ct_eval_del_array_elem(zval *result, zval *key) { in ct_eval_del_array_elem() argument
445 ZEND_ASSERT(IS_PARTIAL_ARRAY(result)); in ct_eval_del_array_elem()
449 zend_hash_del(Z_ARR_P(result), ZSTR_EMPTY_ALLOC()); in ct_eval_del_array_elem()
452 zend_hash_index_del(Z_ARR_P(result), 0); in ct_eval_del_array_elem()
455 zend_hash_index_del(Z_ARR_P(result), 1); in ct_eval_del_array_elem()
458 zend_hash_index_del(Z_ARR_P(result), Z_LVAL_P(key)); in ct_eval_del_array_elem()
465 zend_hash_index_del(Z_ARR_P(result), lval); in ct_eval_del_array_elem()
469 zend_symtable_del(Z_ARR_P(result), Z_STR_P(key)); in ct_eval_del_array_elem()
478 static inline zend_result ct_eval_add_array_elem(zval *result, zval *value, zval *key) { in ct_eval_add_array_elem() argument
480 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
481 if ((value = zend_hash_next_index_insert(Z_ARR_P(result), value))) { in ct_eval_add_array_elem()
490 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
491 value = zend_hash_update(Z_ARR_P(result), ZSTR_EMPTY_ALLOC(), value); in ct_eval_add_array_elem()
494 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
495 value = zend_hash_index_update(Z_ARR_P(result), 0, value); in ct_eval_add_array_elem()
498 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
499 value = zend_hash_index_update(Z_ARR_P(result), 1, value); in ct_eval_add_array_elem()
502 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
503 value = zend_hash_index_update(Z_ARR_P(result), Z_LVAL_P(key), value); in ct_eval_add_array_elem()
510 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
512 Z_ARR_P(result), lval, value); in ct_eval_add_array_elem()
516 SEPARATE_ARRAY(result); in ct_eval_add_array_elem()
517 value = zend_symtable_update(Z_ARR_P(result), Z_STR_P(key), value); in ct_eval_add_array_elem()
527 static inline zend_result ct_eval_add_array_unpack(zval *result, zval *array) { in ct_eval_add_array_unpack() argument
534 SEPARATE_ARRAY(result); in ct_eval_add_array_unpack()
537 value = zend_hash_update(Z_ARR_P(result), key, value); in ct_eval_add_array_unpack()
539 value = zend_hash_next_index_insert(Z_ARR_P(result), value); in ct_eval_add_array_unpack()
549 static inline zend_result ct_eval_assign_dim(zval *result, zval *value, zval *key) { in ct_eval_assign_dim() argument
550 switch (Z_TYPE_P(result)) { in ct_eval_assign_dim()
553 array_init(result); in ct_eval_assign_dim()
557 return ct_eval_add_array_elem(result, value, key); in ct_eval_assign_dim()
568 if (index >= Z_STRLEN_P(result)) { in ct_eval_assign_dim()
570 memcpy(ZSTR_VAL(new_str), Z_STRVAL_P(result), Z_STRLEN_P(result)); in ct_eval_assign_dim()
571 memset(ZSTR_VAL(new_str) + Z_STRLEN_P(result), ' ', index - Z_STRLEN_P(result)); in ct_eval_assign_dim()
574 new_str = zend_string_init(Z_STRVAL_P(result), Z_STRLEN_P(result), 0); in ct_eval_assign_dim()
578 ZVAL_STR(result, new_str); in ct_eval_assign_dim()
579 Z_STRVAL_P(result)[index] = ZSTR_VAL(value_str)[0]; in ct_eval_assign_dim()
588 static inline zend_result fetch_obj_prop(zval **result, zval *op1, zval *op2) { in fetch_obj_prop() argument
591 *result = zend_symtable_find(Z_ARR_P(op1), Z_STR_P(op2)); in fetch_obj_prop()
598 static inline zend_result ct_eval_fetch_obj(zval *result, zval *op1, zval *op2) { in ct_eval_fetch_obj() argument
602 ZVAL_COPY(result, value); in ct_eval_fetch_obj()
609 static inline zend_result ct_eval_isset_obj(zval *result, uint32_t extended_value, zval *op1, zval … in ct_eval_isset_obj() argument
618 return ct_eval_isset_isempty(result, extended_value, value); in ct_eval_isset_obj()
620 ZVAL_BOOL(result, (extended_value & ZEND_ISEMPTY)); in ct_eval_isset_obj()
625 static inline zend_result ct_eval_del_obj_prop(zval *result, zval *key) { in ct_eval_del_obj_prop() argument
626 ZEND_ASSERT(IS_PARTIAL_OBJECT(result)); in ct_eval_del_obj_prop()
630 zend_symtable_del(Z_ARR_P(result), Z_STR_P(key)); in ct_eval_del_obj_prop()
639 static inline zend_result ct_eval_add_obj_prop(zval *result, zval *value, zval *key) { in ct_eval_add_obj_prop() argument
642 value = zend_symtable_update(Z_ARR_P(result), Z_STR_P(key), value); in ct_eval_add_obj_prop()
652 static inline zend_result ct_eval_assign_obj(zval *result, zval *value, zval *key) { in ct_eval_assign_obj() argument
653 switch (Z_TYPE_P(result)) { in ct_eval_assign_obj()
656 empty_partial_object(result); in ct_eval_assign_obj()
659 return ct_eval_add_obj_prop(result, value, key); in ct_eval_assign_obj()
665 static inline zend_result ct_eval_incdec(zval *result, zend_uchar opcode, zval *op1) { in ct_eval_incdec() argument
670 ZVAL_COPY(result, op1); in ct_eval_incdec()
675 increment_function(result); in ct_eval_incdec()
677 decrement_function(result); in ct_eval_incdec()
682 static inline void ct_eval_type_check(zval *result, uint32_t type_mask, zval *op1) { in ct_eval_type_check() argument
689 ZVAL_BOOL(result, (type_mask >> type) & 1); in ct_eval_type_check()
692 static inline zend_result ct_eval_in_array(zval *result, uint32_t extended_value, zval *op1, zval *… in ct_eval_in_array() argument
723 ZVAL_BOOL(result, res); in ct_eval_in_array()
727 static inline zend_result ct_eval_array_key_exists(zval *result, zval *op1, zval *op2) { in ct_eval_array_key_exists() argument
743 ZVAL_BOOL(result, value != NULL); in ct_eval_array_key_exists()
782 zend_op_array *op_array, zval *result, zend_string *name, uint32_t num_args, zval **args) { in ct_eval_func_call() argument
790 zend_optimizer_eval_special_func_call(result, name, Z_STR_P(args[0])) == SUCCESS) { in ct_eval_func_call()
823 ZVAL_NULL(result); in ct_eval_func_call()
824 func->internal_function.handler(execute_data, result); in ct_eval_func_call()
831 zval_ptr_dtor(result); in ct_eval_func_call()
837 zval_ptr_dtor(result); in ct_eval_func_call()
871 SET_RESULT_BOT(result); in sccp_visit_instr()
874 SET_RESULT(result, op2); in sccp_visit_instr()
887 SET_RESULT_BOT(result); in sccp_visit_instr()
900 SET_RESULT_BOT(result); in sccp_visit_instr()
913 SET_RESULT_BOT(result); in sccp_visit_instr()
950 SET_RESULT(result, data); in sccp_visit_instr()
957 SET_RESULT(result, data); in sccp_visit_instr()
960 SET_RESULT_BOT(result); in sccp_visit_instr()
980 SET_RESULT_BOT(result); in sccp_visit_instr()
986 SET_RESULT_BOT(result); in sccp_visit_instr()
997 SET_RESULT_BOT(result); in sccp_visit_instr()
1005 SET_RESULT_BOT(result); in sccp_visit_instr()
1035 SET_RESULT(result, data); in sccp_visit_instr()
1038 SET_RESULT_BOT(result); in sccp_visit_instr()
1045 SET_RESULT_BOT(result); in sccp_visit_instr()
1073 zval *result = NULL; in sccp_visit_instr() local
1076 result = &ctx->values[ssa_op->result_use]; in sccp_visit_instr()
1077 if (IS_BOT(result)) { in sccp_visit_instr()
1078 SET_RESULT_BOT(result); in sccp_visit_instr()
1082 SKIP_IF_TOP(result); in sccp_visit_instr()
1096 if (result && Z_TYPE_P(result) == IS_NULL) { in sccp_visit_instr()
1097 SET_RESULT_BOT(result); in sccp_visit_instr()
1106 SET_RESULT(result, &zv); in sccp_visit_instr()
1109 SET_RESULT_BOT(result); in sccp_visit_instr()
1119 if (!result) { in sccp_visit_instr()
1122 MAKE_PARTIAL_ARRAY(result); in sccp_visit_instr()
1123 ZVAL_COPY_VALUE(&zv, result); in sccp_visit_instr()
1124 ZVAL_NULL(result); in sccp_visit_instr()
1128 SET_RESULT(result, &zv); in sccp_visit_instr()
1130 SET_RESULT(result, &zv); in sccp_visit_instr()
1132 SET_RESULT_BOT(result); in sccp_visit_instr()
1138 SET_RESULT_BOT(result); in sccp_visit_instr()
1142 if (result) { in sccp_visit_instr()
1143 ZVAL_COPY_VALUE(&zv, result); in sccp_visit_instr()
1144 ZVAL_NULL(result); in sccp_visit_instr()
1152 SET_RESULT(result, &zv); in sccp_visit_instr()
1157 SET_RESULT(result, &zv); in sccp_visit_instr()
1159 SET_RESULT_BOT(result); in sccp_visit_instr()
1162 SET_RESULT(result, &zv); in sccp_visit_instr()
1170 zval *result = &ctx->values[ssa_op->result_use]; in sccp_visit_instr() local
1171 if (IS_BOT(result) || IS_BOT(op1)) { in sccp_visit_instr()
1172 SET_RESULT_BOT(result); in sccp_visit_instr()
1175 SKIP_IF_TOP(result); in sccp_visit_instr()
1179 if (Z_TYPE_P(result) == IS_NULL) { in sccp_visit_instr()
1180 SET_RESULT_BOT(result); in sccp_visit_instr()
1183 ZVAL_COPY_VALUE(&zv, result); in sccp_visit_instr()
1184 ZVAL_NULL(result); in sccp_visit_instr()
1187 SET_RESULT(result, &zv); in sccp_visit_instr()
1189 SET_RESULT_BOT(result); in sccp_visit_instr()
1198 SET_RESULT(result, &zv); in sccp_visit_instr()
1201 SET_RESULT_BOT(result); in sccp_visit_instr()
1208 SET_RESULT_BOT(result); in sccp_visit_instr()
1220 SET_RESULT_BOT(result); in sccp_visit_instr()
1253 SET_RESULT(result, &zv); in sccp_visit_instr()
1257 SET_RESULT_BOT(result); in sccp_visit_instr()
1272 SET_RESULT(result, &zv); in sccp_visit_instr()
1288 SET_RESULT_BOT(result); in sccp_visit_instr()
1296 SET_RESULT_BOT(result); in sccp_visit_instr()
1309 SET_RESULT(result, &tmp); in sccp_visit_instr()
1333 SET_RESULT_BOT(result); in sccp_visit_instr()
1341 SET_RESULT_BOT(result); in sccp_visit_instr()
1350 SET_RESULT(result, &tmp); in sccp_visit_instr()
1362 SET_RESULT_BOT(result); in sccp_visit_instr()
1383 SET_RESULT(result, &tmp2); in sccp_visit_instr()
1385 SET_RESULT(result, &tmp1); in sccp_visit_instr()
1396 SET_RESULT_BOT(result); in sccp_visit_instr()
1403 SET_RESULT(result, &zv); in sccp_visit_instr()
1408 SET_RESULT_BOT(result); in sccp_visit_instr()
1413 SET_RESULT(result, op1); in sccp_visit_instr()
1425 SET_RESULT_BOT(result); in sccp_visit_instr()
1429 SET_RESULT(result, &zv); in sccp_visit_instr()
1433 SET_RESULT_BOT(result); in sccp_visit_instr()
1438 SET_RESULT_BOT(result); in sccp_visit_instr()
1442 SET_RESULT(result, &zv); in sccp_visit_instr()
1446 SET_RESULT_BOT(result); in sccp_visit_instr()
1453 SET_RESULT(result, &zv); in sccp_visit_instr()
1457 SET_RESULT_BOT(result); in sccp_visit_instr()
1462 SET_RESULT(result, &zv); in sccp_visit_instr()
1466 SET_RESULT_BOT(result); in sccp_visit_instr()
1473 SET_RESULT(result, &zv); in sccp_visit_instr()
1476 SET_RESULT_BOT(result); in sccp_visit_instr()
1482 SET_RESULT(result, &zv); in sccp_visit_instr()
1486 SET_RESULT_BOT(result); in sccp_visit_instr()
1492 SET_RESULT(result, &zv); in sccp_visit_instr()
1496 SET_RESULT_BOT(result); in sccp_visit_instr()
1502 SET_RESULT(result, &zv); in sccp_visit_instr()
1506 SET_RESULT_BOT(result); in sccp_visit_instr()
1515 SET_RESULT(result, &zv); in sccp_visit_instr()
1519 SET_RESULT_BOT(result); in sccp_visit_instr()
1526 SET_RESULT(result, &zv); in sccp_visit_instr()
1530 SET_RESULT_BOT(result); in sccp_visit_instr()
1539 SET_RESULT(result, &zv); in sccp_visit_instr()
1544 SET_RESULT_BOT(result); in sccp_visit_instr()
1552 SET_RESULT(result, &zv); in sccp_visit_instr()
1557 SET_RESULT_BOT(result); in sccp_visit_instr()
1563 SET_RESULT(result, op1); in sccp_visit_instr()
1578 SET_RESULT(result, &zv); in sccp_visit_instr()
1581 SET_RESULT(result, op2); in sccp_visit_instr()
1586 SET_RESULT(result, &zv); in sccp_visit_instr()
1590 SET_RESULT_BOT(result); in sccp_visit_instr()
1595 SET_RESULT(result, &zv); in sccp_visit_instr()
1601 SET_RESULT(result, &zv); in sccp_visit_instr()
1606 SET_RESULT_BOT(result); in sccp_visit_instr()
1610 SET_RESULT(result, &zv); in sccp_visit_instr()
1614 SET_RESULT_BOT(result); in sccp_visit_instr()
1624 SET_RESULT(result, &zv); in sccp_visit_instr()
1628 SET_RESULT_BOT(result); in sccp_visit_instr()
1637 SET_RESULT_BOT(result); in sccp_visit_instr()
1652 SET_RESULT_BOT(result); in sccp_visit_instr()
1659 SET_RESULT_BOT(result); in sccp_visit_instr()
1667 SET_RESULT_BOT(result); in sccp_visit_instr()
1681 SET_RESULT(result, &zv); in sccp_visit_instr()
1696 SET_RESULT_BOT(result); in sccp_visit_instr()
1702 SET_RESULT_BOT(result); in sccp_visit_instr()
1985 zval result; in sccp_visit_phi() local
1986 MAKE_TOP(&result); in sccp_visit_phi()
1993 …join_phi_values(&result, &ctx->values[phi->sources[0]], ssa->vars[phi->ssa_var].escape_state != ES… in sccp_visit_phi()
2003 …join_phi_values(&result, &ctx->values[phi->sources[i]], ssa->vars[phi->ssa_var].escape_state != ES… in sccp_visit_phi()
2015 set_value(scdf, ctx, phi->ssa_var, &result); in sccp_visit_phi()
2016 zval_ptr_dtor_nogc(&result); in sccp_visit_phi()
2139 uint32_t old_var = opline->result.var; in try_remove_definition()
2150 opline->result.var = old_var; in try_remove_definition()