static zend_always_inline zval *_get_zval_ptr(int op_type, znode_op node, zend_free_op *should_free, int type EXECUTE_DATA_DC OPLINE_DC)
{
if (op_type & (IS_TMP_VAR|IS_VAR)) {
- if (op_type == IS_TMP_VAR) {
- return _get_zval_ptr_tmp(node.var, should_free EXECUTE_DATA_CC);
- } else {
- ZEND_ASSERT(op_type == IS_VAR);
+ if (!ZEND_DEBUG || op_type == IS_VAR) {
return _get_zval_ptr_var(node.var, should_free EXECUTE_DATA_CC);
+ } else {
+ ZEND_ASSERT(op_type == IS_TMP_VAR);
+ return _get_zval_ptr_tmp(node.var, should_free EXECUTE_DATA_CC);
}
} else {
*should_free = NULL;
static zend_always_inline zval *_get_op_data_zval_ptr_r(int op_type, znode_op node, zend_free_op *should_free EXECUTE_DATA_DC OPLINE_DC)
{
if (op_type & (IS_TMP_VAR|IS_VAR)) {
- if (op_type == IS_TMP_VAR) {
- return _get_zval_ptr_tmp(node.var, should_free EXECUTE_DATA_CC);
- } else {
- ZEND_ASSERT(op_type == IS_VAR);
+ if (!ZEND_DEBUG || op_type == IS_VAR) {
return _get_zval_ptr_var(node.var, should_free EXECUTE_DATA_CC);
+ } else {
+ ZEND_ASSERT(op_type == IS_TMP_VAR);
+ return _get_zval_ptr_tmp(node.var, should_free EXECUTE_DATA_CC);
}
} else {
*should_free = NULL;
static zend_always_inline zval *_get_zval_ptr_undef(int op_type, znode_op node, zend_free_op *should_free, int type EXECUTE_DATA_DC OPLINE_DC)
{
if (op_type & (IS_TMP_VAR|IS_VAR)) {
- if (op_type == IS_TMP_VAR) {
- return _get_zval_ptr_tmp(node.var, should_free EXECUTE_DATA_CC);
- } else {
- ZEND_ASSERT(op_type == IS_VAR);
+ if (!ZEND_DEBUG || op_type == IS_VAR) {
return _get_zval_ptr_var(node.var, should_free EXECUTE_DATA_CC);
+ } else {
+ ZEND_ASSERT(op_type == IS_TMP_VAR);
+ return _get_zval_ptr_tmp(node.var, should_free EXECUTE_DATA_CC);
}
} else {
*should_free = NULL;