Lines Matching refs:kind

668 …ve_range(zend_op_array *op_array, uint32_t offset, uint32_t end, uint32_t kind, uint32_t var) /* {…  in zend_end_live_range()  argument
676 range->var = (var * sizeof(zval)) | kind; in zend_end_live_range()
1480 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
1488 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
2420 return ast->kind == ZEND_AST_VAR || ast->kind == ZEND_AST_DIM in zend_is_variable()
2421 || ast->kind == ZEND_AST_PROP || ast->kind == ZEND_AST_STATIC_PROP in zend_is_variable()
2422 || ast->kind == ZEND_AST_CALL || ast->kind == ZEND_AST_METHOD_CALL in zend_is_variable()
2423 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_variable()
2429 return ast->kind == ZEND_AST_CALL in zend_is_call()
2430 || ast->kind == ZEND_AST_METHOD_CALL in zend_is_call()
2431 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_call()
2437 return ast->kind == ZEND_AST_STMT_LIST || ast->kind == ZEND_AST_LABEL in zend_is_unticked_stmt()
2438 || ast->kind == ZEND_AST_PROP_DECL || ast->kind == ZEND_AST_CLASS_CONST_DECL in zend_is_unticked_stmt()
2439 || ast->kind == ZEND_AST_USE_TRAIT || ast->kind == ZEND_AST_METHOD; in zend_is_unticked_stmt()
2445 while (ast->kind == ZEND_AST_DIM || ast->kind == ZEND_AST_PROP) { in zend_can_write_to_variable()
2455 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2509 uint32_t type = name_ast->kind == ZEND_AST_ZVAL ? name_ast->attr : ZEND_NAME_FQ; in zend_compile_class_ref()
2531 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_compile_class_ref_ex()
2585 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2637 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_this_fetch()
2681 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_emit_assign_znode()
2816 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_verify_list_assign_target()
2897 if (ast->kind == ZEND_AST_CALL) { in zend_ensure_writable_variable()
2900 if (ast->kind == ZEND_AST_METHOD_CALL || ast->kind == ZEND_AST_STATIC_CALL) { in zend_ensure_writable_variable()
2909 if (expr_ast->kind != ZEND_AST_VAR || expr_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
2913 while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) { in zend_is_assign_to_self()
2917 if (var_ast->kind != ZEND_AST_VAR || var_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
2947 if (var_ast->kind == ZEND_AST_ARRAY && zend_list_has_assign_to(var_ast, name)) { in zend_list_has_assign_to()
2951 if (var_ast->kind == ZEND_AST_VAR && var_ast->child[0]->kind == ZEND_AST_ZVAL) { in zend_list_has_assign_to()
2969 if (expr_ast->kind == ZEND_AST_VAR && expr_ast->child[0]->kind == ZEND_AST_ZVAL) { in zend_list_has_assign_to_self()
2994 switch (var_ast->kind) { in zend_compile_assign()
3063 if ((target_ast->kind != ZEND_AST_VAR in zend_compile_assign_ref()
3064 || target_ast->child[0]->kind != ZEND_AST_ZVAL) in zend_compile_assign_ref()
3109 switch (var_ast->kind) { in zend_compile_compound_assign()
3160 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_args()
3372 if (args->child[i]->kind == ZEND_AST_UNPACK) { in zend_args_contain_unpack()
3385 || args->children != 1 || args->child[0]->kind == ZEND_AST_UNPACK in zend_compile_func_strlen()
3407 if (args->children != 1 || args->child[0]->kind == ZEND_AST_UNPACK) { in zend_compile_func_typecheck()
3423 if (args->children != 1 || args->child[0]->kind == ZEND_AST_UNPACK) { in zend_compile_func_cast()
3439 if (args->children != 1 || args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_defined()
3477 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_chr()
3500 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_ord()
3519 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_try_compile_ct_bound_init_user_func()
3632 (args->child[0]->kind != ZEND_AST_ZVAL || in zend_compile_assert()
3728 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
3917 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_new()
4058 switch (var_ast->kind) { in zend_compile_unset()
4266 ZEND_ASSERT(ast->kind == ZEND_AST_BREAK || ast->kind == ZEND_AST_CONTINUE); in zend_compile_break_continue()
4270 if (depth_ast->kind != ZEND_AST_ZVAL) { in zend_compile_break_continue()
4272 "is no longer supported", ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
4278 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
4288 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
4292 ast->kind == ZEND_AST_BREAK ? "break" : "continue", in zend_compile_break_continue()
4296 opline = zend_emit_op(NULL, ast->kind == ZEND_AST_BREAK ? ZEND_BRK : ZEND_CONT, NULL, NULL); in zend_compile_break_continue()
4507 zend_bool by_ref = value_ast->kind == ZEND_AST_REF; in zend_compile_foreach()
4516 if (key_ast->kind == ZEND_AST_REF) { in zend_compile_foreach()
4519 if (key_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
4548 } else if (value_ast->kind == ZEND_AST_VAR && in zend_compile_foreach()
4901 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_handle_encoding_declaration()
4950 } else if (file_ast->child[i]->kind != ZEND_AST_DECLARE) { in zend_declare_is_first_statement()
4973 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_compile_declare()
5061 if (ast->kind == ZEND_AST_TYPE) { in zend_compile_typename()
5213 if (type_ast->kind == ZEND_AST_TYPE) { in zend_compile_params()
5580 zend_bool is_method = decl->kind == ZEND_AST_METHOD; in zend_compile_func_decl()
5595 if (decl->kind == ZEND_AST_CLOSURE) { in zend_compile_func_decl()
5869 switch (adaptation_ast->kind) { in zend_compile_use_trait()
6591 static inline zend_bool zend_try_ct_eval_unary_pm(zval *result, zend_ast_kind kind, zval *op) /* {{… in zend_try_ct_eval_unary_pm() argument
6594 ZVAL_LONG(&left, (kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_try_ct_eval_unary_pm()
6599 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
6601 binary_op_type fn = kind == ZEND_AST_GREATER in zend_ct_eval_greater()
6628 if (elem_ast->attr /* by_ref */ || elem_ast->child[0]->kind != ZEND_AST_ZVAL in zend_try_ct_eval_array()
6629 || (elem_ast->child[1] && elem_ast->child[1]->kind != ZEND_AST_ZVAL) in zend_try_ct_eval_array()
6754 ZEND_ASSERT(ast->kind == ZEND_AST_GREATER || ast->kind == ZEND_AST_GREATER_EQUAL); in zend_compile_greater()
6761 zend_ct_eval_greater(&result->u.constant, ast->kind, in zend_compile_greater()
6769 ast->kind == ZEND_AST_GREATER ? ZEND_IS_SMALLER : ZEND_IS_SMALLER_OR_EQUAL, in zend_compile_greater()
6800 ZEND_ASSERT(ast->kind == ZEND_AST_UNARY_PLUS || ast->kind == ZEND_AST_UNARY_MINUS); in zend_compile_unary_pm()
6805 if (zend_try_ct_eval_unary_pm(&result->u.constant, ast->kind, &expr_node.u.constant)) { in zend_compile_unary_pm()
6813 ZVAL_LONG(&lefthand_node.u.constant, (ast->kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_compile_unary_pm()
6827 ZEND_ASSERT(ast->kind == ZEND_AST_AND || ast->kind == ZEND_AST_OR); in zend_compile_short_circuiting()
6832 if ((ast->kind == ZEND_AST_AND && !zend_is_true(&left_node.u.constant)) in zend_compile_short_circuiting()
6833 || (ast->kind == ZEND_AST_OR && zend_is_true(&left_node.u.constant))) { in zend_compile_short_circuiting()
6854 opline_jmpz = zend_emit_op(NULL, ast->kind == ZEND_AST_AND ? ZEND_JMPZ_EX : ZEND_JMPNZ_EX, in zend_compile_short_circuiting()
6877 ZEND_ASSERT(ast->kind == ZEND_AST_POST_INC || ast->kind == ZEND_AST_POST_DEC); in zend_compile_post_incdec()
6881 if (var_ast->kind == ZEND_AST_PROP) { in zend_compile_post_incdec()
6883 opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_OBJ : ZEND_POST_DEC_OBJ; in zend_compile_post_incdec()
6888 zend_emit_op_tmp(result, ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC : ZEND_POST_DEC, in zend_compile_post_incdec()
6897 ZEND_ASSERT(ast->kind == ZEND_AST_PRE_INC || ast->kind == ZEND_AST_PRE_DEC); in zend_compile_pre_incdec()
6901 if (var_ast->kind == ZEND_AST_PROP) { in zend_compile_pre_incdec()
6903 opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_OBJ : ZEND_PRE_DEC_OBJ; in zend_compile_pre_incdec()
6907 zend_emit_op(result, ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC : ZEND_PRE_DEC, in zend_compile_pre_incdec()
7147 ZEND_ASSERT(ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY); in zend_compile_isset_or_empty()
7150 if (ast->kind == ZEND_AST_EMPTY) { in zend_compile_isset_or_empty()
7162 switch (var_ast->kind) { in zend_compile_isset_or_empty()
7190 opline->extended_value |= ast->kind == ZEND_AST_ISSET ? ZEND_ISSET : ZEND_ISEMPTY; in zend_compile_isset_or_empty()
7203 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_silence()
7320 while (last->kind == ZEND_AST_STMT_LIST) { in zend_compile_const()
7324 if (last->kind == ZEND_AST_HALT_COMPILER) { in zend_compile_const()
7383 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
7387 …if (const_ast->kind == ZEND_AST_ZVAL && zend_try_ct_eval_class_const(&result->u.constant, resolved… in zend_compile_class_const()
7394 …if (const_ast->kind == ZEND_AST_ZVAL && zend_string_equals_literal_ci(zend_ast_get_str(const_ast),… in zend_compile_class_const()
7597 zend_bool zend_is_allowed_in_const_expr(zend_ast_kind kind) /* {{{ */ in zend_is_allowed_in_const_expr() argument
7599 return kind == ZEND_AST_ZVAL || kind == ZEND_AST_BINARY_OP in zend_is_allowed_in_const_expr()
7600 || kind == ZEND_AST_GREATER || kind == ZEND_AST_GREATER_EQUAL in zend_is_allowed_in_const_expr()
7601 || kind == ZEND_AST_AND || kind == ZEND_AST_OR in zend_is_allowed_in_const_expr()
7602 || kind == ZEND_AST_UNARY_OP in zend_is_allowed_in_const_expr()
7603 || kind == ZEND_AST_UNARY_PLUS || kind == ZEND_AST_UNARY_MINUS in zend_is_allowed_in_const_expr()
7604 || kind == ZEND_AST_CONDITIONAL || kind == ZEND_AST_DIM in zend_is_allowed_in_const_expr()
7605 || kind == ZEND_AST_ARRAY || kind == ZEND_AST_ARRAY_ELEM in zend_is_allowed_in_const_expr()
7606 || kind == ZEND_AST_CONST || kind == ZEND_AST_CLASS_CONST in zend_is_allowed_in_const_expr()
7607 || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_COALESCE; in zend_is_allowed_in_const_expr()
7621 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_const()
7709 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
7713 if (!zend_is_allowed_in_const_expr(ast->kind)) { in zend_compile_const_expr()
7717 switch (ast->kind) { in zend_compile_const_expr()
7739 if (ast->kind == ZEND_AST_ZVAL) { in zend_const_expr_to_zval()
7750 orig_ast->kind = 0; in zend_const_expr_to_zval()
7761 if (ast->kind == ZEND_AST_STMT_LIST) { in zend_compile_top_stmt()
7772 if (ast->kind != ZEND_AST_NAMESPACE && ast->kind != ZEND_AST_HALT_COMPILER) { in zend_compile_top_stmt()
7775 if (ast->kind == ZEND_AST_FUNC_DECL || ast->kind == ZEND_AST_CLASS) { in zend_compile_top_stmt()
7794 switch (ast->kind) { in zend_compile_stmt()
7900 switch (ast->kind) { in zend_compile_expr()
8023 switch (ast->kind) { in zend_compile_var()
8063 switch (ast->kind) { in zend_delayed_compile_var()
8094 switch (ast->kind) { in zend_eval_const_expr()
8098 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8112 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8116 zend_ct_eval_greater(&result, ast->kind, in zend_eval_const_expr()
8125 if (ast->child[i]->kind == ZEND_AST_ZVAL) { in zend_eval_const_expr()
8126 if (zend_is_true(zend_ast_get_zval(ast->child[i])) == (ast->kind == ZEND_AST_OR)) { in zend_eval_const_expr()
8127 ZVAL_BOOL(&result, ast->kind == ZEND_AST_OR); in zend_eval_const_expr()
8133 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8137 if (ast->kind == ZEND_AST_OR) { in zend_eval_const_expr()
8146 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8155 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8159 if (!zend_try_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0]))) { in zend_eval_const_expr()
8165 if (ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
8170 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8191 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8221 if (ast->attr == ZEND_DIM_IS && ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
8227 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
8325 …if (name_ast->kind == ZEND_AST_ZVAL && zend_string_equals_literal_ci(zend_ast_get_str(name_ast), "… in zend_eval_const_expr()
8330 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()