mirror of
https://github.com/php/php-src.git
synced 2025-01-21 03:03:41 +08:00
Optimization (IS_TMP_VARs don't need reference counting)
This commit is contained in:
parent
523b965cd4
commit
e0b728597b
@ -3389,7 +3389,7 @@ ZEND_VM_HANDLER(99, ZEND_FETCH_CONSTANT, VAR|CONST|UNUSED, CONST)
|
||||
CACHE_PTR(opline->op2.literal->cache_slot, c);
|
||||
}
|
||||
retval = &EX_T(opline->result.var).tmp_var;
|
||||
INIT_PZVAL_COPY(retval, &c->value);
|
||||
ZVAL_COPY_VALUE(retval, &c->value);
|
||||
zval_copy_ctor(retval);
|
||||
CHECK_EXCEPTION();
|
||||
ZEND_VM_NEXT_OPCODE();
|
||||
|
@ -3276,7 +3276,7 @@ static int ZEND_FASTCALL ZEND_FETCH_CONSTANT_SPEC_CONST_CONST_HANDLER(ZEND_OPCO
|
||||
CACHE_PTR(opline->op2.literal->cache_slot, c);
|
||||
}
|
||||
retval = &EX_T(opline->result.var).tmp_var;
|
||||
INIT_PZVAL_COPY(retval, &c->value);
|
||||
ZVAL_COPY_VALUE(retval, &c->value);
|
||||
zval_copy_ctor(retval);
|
||||
CHECK_EXCEPTION();
|
||||
ZEND_VM_NEXT_OPCODE();
|
||||
@ -13086,7 +13086,7 @@ static int ZEND_FASTCALL ZEND_FETCH_CONSTANT_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE
|
||||
CACHE_PTR(opline->op2.literal->cache_slot, c);
|
||||
}
|
||||
retval = &EX_T(opline->result.var).tmp_var;
|
||||
INIT_PZVAL_COPY(retval, &c->value);
|
||||
ZVAL_COPY_VALUE(retval, &c->value);
|
||||
zval_copy_ctor(retval);
|
||||
CHECK_EXCEPTION();
|
||||
ZEND_VM_NEXT_OPCODE();
|
||||
@ -21675,7 +21675,7 @@ static int ZEND_FASTCALL ZEND_FETCH_CONSTANT_SPEC_UNUSED_CONST_HANDLER(ZEND_OPC
|
||||
CACHE_PTR(opline->op2.literal->cache_slot, c);
|
||||
}
|
||||
retval = &EX_T(opline->result.var).tmp_var;
|
||||
INIT_PZVAL_COPY(retval, &c->value);
|
||||
ZVAL_COPY_VALUE(retval, &c->value);
|
||||
zval_copy_ctor(retval);
|
||||
CHECK_EXCEPTION();
|
||||
ZEND_VM_NEXT_OPCODE();
|
||||
|
Loading…
Reference in New Issue
Block a user