Home
last modified time | relevance | path

Searched refs:type_mask (Results 1 – 16 of 16) sorted by relevance

/php-src/Zend/
H A Dzend_verify_type_inference.h43 if (type_mask == MAY_BE_CLASS) { in zend_verify_type_inference()
48 if (!(type_mask & MAY_BE_INDIRECT)) { in zend_verify_type_inference()
68 if (!(type_mask & MAY_BE_REF)) { in zend_verify_type_inference()
69 ZEND_VERIFY_TYPE_INFERENCE_ERROR("mask 0x%x missing MAY_BE_REF", type_mask); in zend_verify_type_inference()
74 if (!(type_mask & (1u << Z_TYPE_P(value)))) { in zend_verify_type_inference()
88 if (HT_IS_PACKED(ht) && !MAY_BE_PACKED(type_mask)) { in zend_verify_type_inference()
91 if (!HT_IS_PACKED(ht) && !MAY_BE_HASH(type_mask)) { in zend_verify_type_inference()
95 if (!(type_mask & MAY_BE_ARRAY_EMPTY)) { in zend_verify_type_inference()
101 if (!(type_mask & MAY_BE_ARRAY_KEY_STRING)) { in zend_verify_type_inference()
106 if (!(type_mask & MAY_BE_ARRAY_KEY_LONG)) { in zend_verify_type_inference()
[all …]
H A Dzend_types.h136 uint32_t type_mask; member
167 (((t).type_mask & _ZEND_TYPE_MASK) != 0)
172 ((((t).type_mask) & _ZEND_TYPE_KIND_MASK) != 0)
175 ((((t).type_mask) & _ZEND_TYPE_NAME_BIT) != 0)
181 ((((t).type_mask) & _ZEND_TYPE_LIST_BIT) != 0)
245 (t).type_mask &= ~_ZEND_TYPE_KIND_MASK; \
246 (t).type_mask |= (kind_bit); \
255 ((t).type_mask)
258 ((t).type_mask & _ZEND_TYPE_MAY_BE_MASK)
261 ((t).type_mask & ~_ZEND_TYPE_NULLABLE_BIT)
[all …]
H A Dzend_execute.c732 if (type_mask & MAY_BE_LONG) { in zend_verify_weak_scalar_type_hint()
1167 uint32_t type_mask; in zend_check_type_slow() local
1202 type_mask = ZEND_TYPE_FULL_MASK(*type); in zend_check_type_slow()
1203 if ((type_mask & MAY_BE_CALLABLE) && in zend_check_type_slow()
1355 if (!type_mask) { in zend_verify_internal_func_info()
1361 if (!(type_mask & MAY_BE_RC1)) { in zend_verify_internal_func_info()
1370 if (!(type_mask & type)) { in zend_verify_internal_func_info()
1387 if (!(type_mask & MAY_BE_ARRAY_KEY_LONG)) { in zend_verify_internal_func_info()
1394 if (!(type_mask & array_type)) { in zend_verify_internal_func_info()
3742 uint32_t type_mask; in i_zend_verify_type_assignable_zval() local
[all …]
H A Dzend_compile.c1458 if (type_mask == MAY_BE_ANY) { in zend_type_to_string_resolved()
1463 if (type_mask & MAY_BE_STATIC) { in zend_type_to_string_resolved()
1477 if (type_mask & MAY_BE_OBJECT) { in zend_type_to_string_resolved()
1480 if (type_mask & MAY_BE_ARRAY) { in zend_type_to_string_resolved()
1483 if (type_mask & MAY_BE_STRING) { in zend_type_to_string_resolved()
1486 if (type_mask & MAY_BE_LONG) { in zend_type_to_string_resolved()
1489 if (type_mask & MAY_BE_DOUBLE) { in zend_type_to_string_resolved()
1499 if (type_mask & MAY_BE_VOID) { in zend_type_to_string_resolved()
1502 if (type_mask & MAY_BE_NEVER) { in zend_type_to_string_resolved()
1506 if (type_mask & MAY_BE_NULL) { in zend_type_to_string_resolved()
[all …]
H A Dzend_API.h146 #define ZEND_ARG_TYPE_MASK(pass_by_ref, name, type_mask, default_value) \ argument
147 { #name, ZEND_TYPE_INIT_MASK(type_mask | _ZEND_ARG_INFO_FLAGS(pass_by_ref, 0, 0)), default_value },
148 #define ZEND_ARG_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask, default_value) \ argument
149 …{ #name, ZEND_TYPE_INIT_CLASS_CONST_MASK(#class_name, type_mask | _ZEND_ARG_INFO_FLAGS(pass_by_ref…
150 #define ZEND_ARG_VARIADIC_OBJ_TYPE_MASK(pass_by_ref, name, class_name, type_mask) \ argument
151 …{ #name, ZEND_TYPE_INIT_CLASS_CONST_MASK(#class_name, type_mask | _ZEND_ARG_INFO_FLAGS(pass_by_ref…
H A Dzend_execute.h99 ZEND_API bool zend_verify_scalar_type_hint(uint32_t type_mask, zval *arg, bool strict, bool is_inte…
H A Dzend_API.c3132 new_arg_info[i].type.type_mask &= ~_ZEND_TYPE_LITERAL_NAME_BIT; in zend_register_functions()
3146 new_arg_info[i].type.type_mask |= _ZEND_TYPE_NAME_BIT; in zend_register_functions()
3176 (new_arg_info[i].type.type_mask | MAY_BE_ARRAY) in zend_register_functions()
/php-src/Zend/Optimizer/
H A Dzend_ssa.c162 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()
491 uint32_t type_mask; in place_essa_pis() local
508 type_mask = _const_op_type(val); in place_essa_pis()
511 pi_type_mask(pi, type_mask); in place_essa_pis()
514 pi_not_type_mask(pi, type_mask); in place_essa_pis()
518 pi_type_mask(pi, type_mask); in place_essa_pis()
[all …]
H A Dzend_ssa.h52 uint32_t type_mask; /* Type mask to intersect with */ member
H A Dzend_inference.c2350 static uint32_t zend_convert_type_declaration_mask(uint32_t type_mask) { in zend_convert_type_declaration_mask() argument
2351 uint32_t result_mask = type_mask & MAY_BE_ANY; in zend_convert_type_declaration_mask()
2352 if (type_mask & MAY_BE_VOID) { in zend_convert_type_declaration_mask()
2355 if (type_mask & MAY_BE_CALLABLE) { in zend_convert_type_declaration_mask()
2358 if (type_mask & MAY_BE_STATIC) { in zend_convert_type_declaration_mask()
2361 if (type_mask & MAY_BE_ARRAY) { in zend_convert_type_declaration_mask()
4202 tmp &= constraint->type_mask; in zend_infer_types_ex()
H A Dsccp.c693 static inline void ct_eval_type_check(zval *result, uint32_t type_mask, zval *op1) { in ct_eval_type_check() argument
700 ZVAL_BOOL(result, (type_mask >> type) & 1); in ct_eval_type_check()
H A Dzend_dump.c397 zend_dump_type_info(constraint->type_mask, constraint->ce, 1, dump_flags); in zend_dump_type_constraint()
/php-src/scripts/gdb/
H A Dphp_gdb.py91 type_mask = int(t['type_mask'])
97 if type_mask & (1 << bit):
/php-src/ext/reflection/
H A Dphp_reflection.c2736 uint32_t type_mask; in ZEND_METHOD() local
2756 uint32_t type_mask; in ZEND_METHOD() local
3085 uint32_t type_mask; in ZEND_METHOD() local
3104 if (type_mask & MAY_BE_STATIC) { in ZEND_METHOD()
3107 if (type_mask & MAY_BE_CALLABLE) { in ZEND_METHOD()
3110 if (type_mask & MAY_BE_OBJECT) { in ZEND_METHOD()
3113 if (type_mask & MAY_BE_ARRAY) { in ZEND_METHOD()
3116 if (type_mask & MAY_BE_STRING) { in ZEND_METHOD()
3119 if (type_mask & MAY_BE_LONG) { in ZEND_METHOD()
3122 if (type_mask & MAY_BE_DOUBLE) { in ZEND_METHOD()
[all …]
/php-src/ext/opcache/jit/
H A Dzend_jit_ir.c10671 if (type != IS_UNKNOWN && (type_mask & (1u << type))) {
10685 if (type_mask != 0) {
10686 if (is_power_of_two(type_mask)) {
10687 uint32_t type_code = concrete_type(type_mask);
10695 ir_CONST_U32(type_mask)));
10846 if (type_mask != 0) {
10847 if (((op1_info & MAY_BE_ANY) & type_mask) == 0) {
10849 } else if (((op1_info & MAY_BE_ANY) | type_mask) == type_mask) {
10851 } else if (is_power_of_two(type_mask)) {
10852 uint32_t type_code = concrete_type(type_mask);
[all …]
H A Dzend_jit.c455 uint32_t type_mask = ZEND_TYPE_PURE_MASK(arg_info->type); in skip_valid_arguments() local
456 if ((OP1_INFO() & (MAY_BE_ANY|MAY_BE_UNDEF)) & ~type_mask) { in skip_valid_arguments()

Completed in 187 milliseconds