/PHP-8.1/Zend/ |
H A D | zend_types.h | 132 uint32_t type_mask; member 160 (((t).type_mask & _ZEND_TYPE_MASK) != 0) 168 ((((t).type_mask) & _ZEND_TYPE_NAME_BIT) != 0) 171 ((((t).type_mask) & _ZEND_TYPE_LIST_BIT) != 0) 232 (t).type_mask &= ~_ZEND_TYPE_KIND_MASK; \ 233 (t).type_mask |= (kind_bit); \ 242 ((t).type_mask) 245 ((t).type_mask & _ZEND_TYPE_MAY_BE_MASK) 248 ((t).type_mask & ~_ZEND_TYPE_NULLABLE_BIT) 254 (((t).type_mask & (1u << (code))) != 0) [all …]
|
H A D | zend_execute.c | 711 if (type_mask & MAY_BE_LONG) { in zend_verify_weak_scalar_type_hint() 1018 uint32_t type_mask; in zend_check_type_slow() local 1058 type_mask = ZEND_TYPE_FULL_MASK(*type); in zend_check_type_slow() 1223 if (!type_mask) { in zend_verify_internal_func_info() 1229 if (!(type_mask & MAY_BE_RC1)) { in zend_verify_internal_func_info() 1238 if (!(type_mask & type)) { in zend_verify_internal_func_info() 1255 if (!(type_mask & MAY_BE_ARRAY_KEY_LONG)) { in zend_verify_internal_func_info() 1262 if (!(type_mask & array_type)) { in zend_verify_internal_func_info() 3442 uint32_t type_mask; in i_zend_verify_type_assignable_zval() local 3454 type_mask = ZEND_TYPE_FULL_MASK(type); in i_zend_verify_type_assignable_zval() [all …]
|
H A D | zend_compile.c | 1223 if (type_mask == MAY_BE_ANY) { in zend_type_to_string_resolved() 1228 if (type_mask & MAY_BE_STATIC) { in zend_type_to_string_resolved() 1245 if (type_mask & MAY_BE_OBJECT) { in zend_type_to_string_resolved() 1248 if (type_mask & MAY_BE_ARRAY) { in zend_type_to_string_resolved() 1251 if (type_mask & MAY_BE_STRING) { in zend_type_to_string_resolved() 1254 if (type_mask & MAY_BE_LONG) { in zend_type_to_string_resolved() 1257 if (type_mask & MAY_BE_DOUBLE) { in zend_type_to_string_resolved() 1265 if (type_mask & MAY_BE_VOID) { in zend_type_to_string_resolved() 1268 if (type_mask & MAY_BE_NEVER) { in zend_type_to_string_resolved() 1272 if (type_mask & MAY_BE_NULL) { in zend_type_to_string_resolved() [all …]
|
H A D | zend_API.h | 130 #define ZEND_ARG_TYPE_MASK(pass_by_ref, name, type_mask, default_value) \ argument 131 { #name, ZEND_TYPE_INIT_MASK(type_mask | _ZEND_ARG_INFO_FLAGS(pass_by_ref, 0, 0)), default_value }, 132 #define ZEND_ARG_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask, default_value) \ argument 133 …{ #name, ZEND_TYPE_INIT_CLASS_CONST_MASK(#class_name, type_mask | _ZEND_ARG_INFO_FLAGS(pass_by_ref… 134 #define ZEND_ARG_VARIADIC_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask) \ argument 135 …{ #name, ZEND_TYPE_INIT_CLASS_CONST_MASK(#class_name, type_mask | _ZEND_ARG_INFO_FLAGS(pass_by_ref…
|
H A D | zend_execute.h | 81 ZEND_API bool zend_verify_scalar_type_hint(uint32_t type_mask, zval *arg, bool strict, bool is_inte…
|
/PHP-8.1/Zend/Optimizer/ |
H A D | zend_ssa.c | 162 static void pi_type_mask(zend_ssa_phi *phi, uint32_t type_mask) { in pi_type_mask() argument 166 phi->constraint.type.type_mask |= type_mask; in pi_type_mask() 167 if (type_mask & MAY_BE_NULL) { in pi_type_mask() 168 phi->constraint.type.type_mask |= MAY_BE_UNDEF; in pi_type_mask() 173 pi_type_mask(phi, ~type_mask & relevant); in pi_not_type_mask() 492 uint32_t type_mask; in place_essa_pis() local 509 type_mask = _const_op_type(val); in place_essa_pis() 512 pi_type_mask(pi, type_mask); in place_essa_pis() 515 pi_not_type_mask(pi, type_mask); in place_essa_pis() 519 pi_type_mask(pi, type_mask); in place_essa_pis() [all …]
|
H A D | zend_ssa.h | 52 uint32_t type_mask; /* Type mask to intersect with */ member
|
H A D | zend_inference.c | 2332 static uint32_t zend_convert_type_declaration_mask(uint32_t type_mask) { in zend_convert_type_declaration_mask() argument 2333 uint32_t result_mask = type_mask & MAY_BE_ANY; in zend_convert_type_declaration_mask() 2334 if (type_mask & MAY_BE_VOID) { in zend_convert_type_declaration_mask() 2337 if (type_mask & MAY_BE_CALLABLE) { in zend_convert_type_declaration_mask() 2340 if (type_mask & MAY_BE_ITERABLE) { in zend_convert_type_declaration_mask() 2343 if (type_mask & MAY_BE_STATIC) { in zend_convert_type_declaration_mask() 2346 if (type_mask & MAY_BE_ARRAY) { in zend_convert_type_declaration_mask() 3978 tmp &= constraint->type_mask; in zend_infer_types_ex()
|
H A D | sccp.c | 740 static inline void ct_eval_type_check(zval *result, uint32_t type_mask, zval *op1) { in ct_eval_type_check() argument 747 ZVAL_BOOL(result, (type_mask >> type) & 1); in ct_eval_type_check()
|
H A D | zend_dump.c | 379 zend_dump_type_info(constraint->type_mask, constraint->ce, 1, dump_flags); in zend_dump_type_constraint()
|
/PHP-8.1/ext/reflection/ |
H A D | php_reflection.c | 2735 uint32_t type_mask; in ZEND_METHOD() local 2752 uint32_t type_mask; in ZEND_METHOD() local 3092 uint32_t type_mask; in ZEND_METHOD() local 3113 if (type_mask & MAY_BE_STATIC) { in ZEND_METHOD() 3116 if (type_mask & MAY_BE_CALLABLE) { in ZEND_METHOD() 3122 if (type_mask & MAY_BE_OBJECT) { in ZEND_METHOD() 3125 if (type_mask & MAY_BE_ARRAY) { in ZEND_METHOD() 3128 if (type_mask & MAY_BE_STRING) { in ZEND_METHOD() 3131 if (type_mask & MAY_BE_LONG) { in ZEND_METHOD() 3134 if (type_mask & MAY_BE_DOUBLE) { in ZEND_METHOD() [all …]
|
/PHP-8.1/ext/opcache/jit/ |
H A D | zend_jit_x86.dasc | 12779 zend_reg tmp_reg = (type_mask == 0 || is_power_of_two(type_mask)) ? ZREG_FCARG1 : ZREG_R0; 12803 if (type_mask != 0) { 12804 if (is_power_of_two(type_mask)) { 12805 uint32_t type_code = concrete_type(type_mask); 12811 | test edx, type_mask 15342 if (type_mask == 0) { 15345 if (((op1_info & MAY_BE_ANY) & type_mask) == 0) { 15347 } else if (((op1_info & MAY_BE_ANY) | type_mask) == type_mask) { 15349 } else if (is_power_of_two(type_mask)) { 15350 uint32_t type_code = concrete_type(type_mask); [all …]
|
H A D | zend_jit_arm64.dasc | 12018 zend_reg tmp_reg = (type_mask == 0 || is_power_of_two(type_mask)) ? ZREG_FCARG1 : ZREG_REG0; 12042 if (type_mask != 0) { 12043 if (is_power_of_two(type_mask)) { 12044 uint32_t type_code = concrete_type(type_mask); 12050 | TST_32_WITH_CONST REG2w, type_mask, TMP1w 14404 if (type_mask == 0) { 14407 if (((op1_info & MAY_BE_ANY) & type_mask) == 0) { 14409 } else if (((op1_info & MAY_BE_ANY) | type_mask) == type_mask) { 14411 } else if (is_power_of_two(type_mask)) { 14412 uint32_t type_code = concrete_type(type_mask); [all …]
|
H A D | zend_jit.c | 496 uint32_t type_mask = ZEND_TYPE_PURE_MASK(arg_info->type); in skip_valid_arguments() local 497 if ((OP1_INFO() & (MAY_BE_ANY|MAY_BE_UNDEF)) & ~type_mask) { in skip_valid_arguments()
|