1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 14:42:49 +02:00

Use quick check for first arguments

This commit is contained in:
Dmitry Stogov
2016-02-26 21:44:28 +03:00
parent b8e30a492a
commit 2e94cba430

View File

@@ -2357,6 +2357,10 @@ ZEND_API void zend_init_execute_data(zend_execute_data *execute_data, zend_op_ar
static zend_always_inline zend_bool zend_is_by_ref_func_arg_fetch(const zend_op *opline, zend_execute_data *call) /* {{{ */
{
uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK;
if (EXPECTED(arg_num <= MAX_ARG_FLAG_NUM)) {
return QUICK_ARG_SHOULD_BE_SENT_BY_REF(call->func, arg_num);
}
return ARG_SHOULD_BE_SENT_BY_REF(call->func, arg_num);
}
/* }}} */