Lines Matching refs:expr_ast

3039 zend_bool zend_is_assign_to_self(zend_ast *var_ast, zend_ast *expr_ast) /* {{{ */  in zend_is_assign_to_self()  argument
3041 if (expr_ast->kind != ZEND_AST_VAR || expr_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3055 zend_string *name2 = zval_get_string(zend_ast_get_zval(expr_ast->child[0])); in zend_is_assign_to_self()
3067 zend_ast *expr_ast = ast->child[1]; in zend_compile_assign() local
3082 zend_compile_expr(&expr_node, expr_ast); in zend_compile_assign()
3090 zend_compile_expr(&expr_node, expr_ast); in zend_compile_assign()
3103 if (zend_is_assign_to_self(var_ast, expr_ast) in zend_compile_assign()
3104 && !is_this_fetch(expr_ast)) { in zend_compile_assign()
3108 if (zend_try_compile_cv(&cv_node, expr_ast) == FAILURE) { in zend_compile_assign()
3109 zend_compile_simple_var_no_cv(&expr_node, expr_ast, BP_VAR_R, 0); in zend_compile_assign()
3114 zend_compile_expr(&expr_node, expr_ast); in zend_compile_assign()
3128 zend_compile_expr(&expr_node, expr_ast); in zend_compile_assign()
3139 if (!zend_is_variable_or_call(expr_ast)) { in zend_compile_assign()
3144 zend_compile_var(&expr_node, expr_ast, BP_VAR_W, 1); in zend_compile_assign()
3149 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_assign()
3153 if (zend_try_compile_cv(&cv_node, expr_ast) == FAILURE) { in zend_compile_assign()
3154 zend_compile_simple_var_no_cv(&expr_node, expr_ast, BP_VAR_R, 0); in zend_compile_assign()
3159 zend_compile_expr(&expr_node, expr_ast); in zend_compile_assign()
3244 zend_ast *expr_ast = ast->child[1]; in zend_compile_compound_assign() local
3257 zend_compile_expr(&expr_node, expr_ast); in zend_compile_compound_assign()
3265 zend_compile_expr(&expr_node, expr_ast); in zend_compile_compound_assign()
3280 zend_compile_expr(&expr_node, expr_ast); in zend_compile_compound_assign()
3294 zend_compile_expr(&expr_node, expr_ast); in zend_compile_compound_assign()
4762 zend_ast *expr_ast = ast->child[0]; in zend_compile_return() local
4774 if (!expr_ast) { in zend_compile_return()
4777 } else if (by_ref && zend_is_variable(expr_ast)) { in zend_compile_return()
4778 if (zend_ast_is_short_circuited(expr_ast)) { in zend_compile_return()
4782 zend_compile_var(&expr_node, expr_ast, BP_VAR_W, 1); in zend_compile_return()
4784 zend_compile_expr(&expr_node, expr_ast); in zend_compile_return()
4801 expr_ast ? &expr_node : NULL, CG(active_op_array)->arg_info - 1, 0); in zend_compile_return()
4809 if (by_ref && expr_ast) { in zend_compile_return()
4810 if (zend_is_call(expr_ast)) { in zend_compile_return()
4812 } else if (!zend_is_variable(expr_ast) || zend_ast_is_short_circuited(expr_ast)) { in zend_compile_return()
4822 zend_ast *expr_ast = ast->child[0]; in zend_compile_echo() local
4825 zend_compile_expr(&expr_node, expr_ast); in zend_compile_echo()
4834 zend_ast *expr_ast = ast->child[0]; in zend_compile_throw() local
4837 zend_compile_expr(&expr_node, expr_ast); in zend_compile_throw()
5083 zend_ast *expr_ast = list->child[i]; in zend_compile_expr_list() local
5086 zend_compile_expr(result, expr_ast); in zend_compile_expr_list()
5127 zend_ast *expr_ast = ast->child[0]; in zend_compile_foreach() local
5132 zend_bool is_variable = zend_is_variable(expr_ast) && zend_can_write_to_variable(expr_ast); in zend_compile_foreach()
5156 zend_compile_var(&expr_node, expr_ast, BP_VAR_W, 1); in zend_compile_foreach()
5158 zend_compile_expr(&expr_node, expr_ast); in zend_compile_foreach()
5162 zend_separate_if_call_and_write(&expr_node, expr_ast, BP_VAR_W); in zend_compile_foreach()
5324 zend_ast *expr_ast = ast->child[0]; in zend_compile_switch() local
5336 zend_compile_expr(&expr_node, expr_ast); in zend_compile_switch()
5502 zend_ast *expr_ast = ast->child[0]; in zend_compile_match() local
5508 zend_compile_expr(&expr_node, expr_ast); in zend_compile_match()
8213 zend_ast *expr_ast = ast->child[0]; in zend_compile_unary_op() local
8217 zend_compile_expr(&expr_node, expr_ast); in zend_compile_unary_op()
8232 zend_ast *expr_ast = ast->child[0]; in zend_compile_unary_pm() local
8237 zend_compile_expr(&expr_node, expr_ast); in zend_compile_unary_pm()
8359 zend_ast *expr_ast = ast->child[0]; in zend_compile_cast() local
8363 zend_compile_expr(&expr_node, expr_ast); in zend_compile_cast()
8463 zend_ast *expr_ast = ast->child[0]; in zend_compile_coalesce() local
8470 zend_compile_var(&expr_node, expr_ast, BP_VAR_IS, 0); in zend_compile_coalesce()
8606 zend_ast *expr_ast = ast->child[0]; in zend_compile_print() local
8609 zend_compile_expr(&expr_node, expr_ast); in zend_compile_print()
8621 zend_ast *expr_ast = ast->child[0]; in zend_compile_exit() local
8623 if (expr_ast) { in zend_compile_exit()
8625 zend_compile_expr(&expr_node, expr_ast); in zend_compile_exit()
8672 zend_ast *expr_ast = ast->child[0]; in zend_compile_yield_from() local
8682 zend_compile_expr(&expr_node, expr_ast); in zend_compile_yield_from()
8721 zend_ast *expr_ast = ast->child[0]; in zend_compile_include_or_eval() local
8726 zend_compile_expr(&expr_node, expr_ast); in zend_compile_include_or_eval()
8795 zend_ast *expr_ast = ast->child[0]; in zend_compile_silence() local
8800 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_silence()
8803 zend_compile_simple_var_no_cv(result, expr_ast, BP_VAR_R, 0 ); in zend_compile_silence()
8805 zend_compile_expr(result, expr_ast); in zend_compile_silence()
8814 zend_ast *expr_ast = ast->child[0]; in zend_compile_shell_exec() local
8821 args_ast = zend_ast_create_list(1, ZEND_AST_ARG_LIST, expr_ast); in zend_compile_shell_exec()