Lines Matching refs:fbc

3634 		zend_ast *ast, zend_function *fbc, bool *may_have_extra_named_args) /* {{{ */  in zend_compile_args()  argument
3665 fbc = NULL; in zend_compile_args()
3674 if (!fbc || (fbc->common.fn_flags & ZEND_ACC_VARIADIC)) { in zend_compile_args()
3685 if (fbc && !uses_arg_unpack) { in zend_compile_args()
3686 arg_num = zend_get_arg_num(fbc, arg_name); in zend_compile_args()
3694 if (arg_num == (uint32_t) -1 && (fbc->common.fn_flags & ZEND_ACC_VARIADIC)) { in zend_compile_args()
3723 if (!fbc || ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3729 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3730 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3732 } else if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3745 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3746 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3784 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3785 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3787 } else if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3796 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3797 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3807 if (fbc && arg_num != (uint32_t) -1 && !ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3835 ZEND_API uint8_t zend_get_call_op(const zend_op *init_op, zend_function *fbc) /* {{{ */ in zend_get_call_op() argument
3837 if (fbc) { in zend_get_call_op()
3838 ZEND_ASSERT(!(fbc->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)); in zend_get_call_op()
3839 …if (fbc->type == ZEND_INTERNAL_FUNCTION && !(CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_F… in zend_get_call_op()
3841 if (!(fbc->common.fn_flags & ZEND_ACC_DEPRECATED)) { in zend_get_call_op()
3862 static bool zend_compile_call_common(znode *result, zend_ast *args_ast, zend_function *fbc, uint32_… in zend_compile_call_common() argument
3876 opline->op1.num = zend_vm_calc_used_stack(0, fbc); in zend_compile_call_common()
3884 uint32_t arg_count = zend_compile_args(args_ast, fbc, &may_have_extra_named_args); in zend_compile_call_common()
3892 opline->op1.num = zend_vm_calc_used_stack(arg_count, fbc); in zend_compile_call_common()
3895 opline = zend_emit_op(result, zend_get_call_op(opline, fbc), NULL, NULL); in zend_compile_call_common()
4121 static bool fbc_is_finalized(zend_function *fbc) { in fbc_is_finalized() argument
4122 return !ZEND_USER_CODE(fbc->type) || (fbc->common.fn_flags & ZEND_ACC_DONE_PASS_TWO); in fbc_is_finalized()
4135 static bool zend_compile_ignore_function(zend_function *fbc, zend_string *filename) in zend_compile_ignore_function() argument
4137 if (fbc->type == ZEND_INTERNAL_FUNCTION) { in zend_compile_ignore_function()
4142 && fbc->op_array.filename != filename); in zend_compile_ignore_function()
4149 zend_function *fbc; in zend_try_compile_ct_bound_init_user_func() local
4159 fbc = zend_hash_find_ptr(CG(function_table), lcname); in zend_try_compile_ct_bound_init_user_func()
4160 if (!fbc in zend_try_compile_ct_bound_init_user_func()
4161 || !fbc_is_finalized(fbc) in zend_try_compile_ct_bound_init_user_func()
4162 || zend_compile_ignore_function(fbc, CG(active_op_array)->filename)) { in zend_try_compile_ct_bound_init_user_func()
4169 opline->op1.num = zend_vm_calc_used_stack(num_args, fbc); in zend_try_compile_ct_bound_init_user_func()
4276 …sert(znode *result, zend_ast_list *args, zend_string *name, zend_function *fbc, uint32_t lineno) /… in zend_compile_assert() argument
4285 if (fbc && fbc_is_finalized(fbc)) { in zend_compile_assert()
4311 zend_compile_call_common(result, (zend_ast*)args, fbc, lineno); in zend_compile_assert()
4317 if (!fbc) { in zend_compile_assert()
4542 …nc(znode *result, zend_string *lcname, zend_ast_list *args, zend_function *fbc, uint32_t type) /* … in zend_try_compile_special_func() argument
4548 if (fbc->type != ZEND_INTERNAL_FUNCTION) { in zend_try_compile_special_func()
4658 zend_function *fbc; in zend_compile_call() local
4662 fbc = zend_hash_find_ptr(CG(function_table), lcname); in zend_compile_call()
4665 if (fbc && zend_string_equals_literal(lcname, "assert") && !is_callable_convert) { in zend_compile_call()
4666 zend_compile_assert(result, zend_ast_get_list(args_ast), lcname, fbc, ast->lineno); in zend_compile_call()
4672 if (!fbc in zend_compile_call()
4673 || !fbc_is_finalized(fbc) in zend_compile_call()
4674 || zend_compile_ignore_function(fbc, CG(active_op_array)->filename)) { in zend_compile_call()
4682 zend_ast_get_list(args_ast), fbc, type) == SUCCESS in zend_compile_call()
4695 zend_compile_call_common(result, args_ast, fbc, ast->lineno); in zend_compile_call()
4708 zend_function *fbc = NULL; in zend_compile_method_call() local
4750 fbc = zend_hash_find_ptr(&CG(active_class_entry)->function_table, lcname); in zend_compile_method_call()
4754 if (fbc && !(fbc->common.fn_flags & (ZEND_ACC_PRIVATE|ZEND_ACC_FINAL))) { in zend_compile_method_call()
4755 fbc = NULL; in zend_compile_method_call()
4759 if (zend_compile_call_common(result, args_ast, fbc, zend_ast_get_lineno(method_ast))) { in zend_compile_method_call()
4776 zend_function *fbc = zend_hash_find_ptr(&ce->function_table, lcname); in zend_get_compatible_func_or_null() local
4777 if (!fbc || (fbc->common.fn_flags & ZEND_ACC_PUBLIC) || ce == CG(active_class_entry)) { in zend_get_compatible_func_or_null()
4778 return fbc; in zend_get_compatible_func_or_null()
4781 if (!(fbc->common.fn_flags & ZEND_ACC_PRIVATE) in zend_get_compatible_func_or_null()
4782 && (fbc->common.scope->ce_flags & ZEND_ACC_LINKED) in zend_get_compatible_func_or_null()
4784 && zend_check_protected(zend_get_function_root_class(fbc), CG(active_class_entry))) { in zend_get_compatible_func_or_null()
4785 return fbc; in zend_get_compatible_func_or_null()
4800 zend_function *fbc = NULL; in zend_compile_static_call() local
4856 fbc = zend_get_compatible_func_or_null(ce, lcname); in zend_compile_static_call()
4860 zend_compile_call_common(result, args_ast, fbc, zend_ast_get_lineno(method_ast)); in zend_compile_static_call()