]> granicus.if.org Git - php/commit
Remove EXT_TYPE_UNUSED in favor of IS_UNUSED
authorNikita Popov <nikic@php.net>
Fri, 5 Feb 2016 14:23:23 +0000 (15:23 +0100)
committerNikita Popov <nikic@php.net>
Thu, 11 Feb 2016 17:02:19 +0000 (18:02 +0100)
commit5faedf5b3e05f0a8c226ac15d90be3d9ade38518
treea3656a2637ab3c92fadf413caee0427d1a962ddb
parentf75be35312e3ca0495f8f5d53ffd042aae58e907
Remove EXT_TYPE_UNUSED in favor of IS_UNUSED

This means we no longer allocate an unused VAR for the retval of
instructions that support unused results.

Nearly all instructions already used the result variable only if
it was used. The only exception to this was the return value
variable for internal function call results. I've adjusted the code
to use a stack zval for the unused return case now. As we have
retval specialization now, we know that it doesn't matter.
16 files changed:
Zend/zend.h
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_execute.c
Zend/zend_opcode.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
Zend/zend_vm_gen.php
ext/opcache/Optimizer/block_pass.c
ext/opcache/Optimizer/dfa_pass.c
ext/opcache/Optimizer/optimize_temp_vars_5.c
ext/opcache/Optimizer/pass3.c
ext/opcache/Optimizer/zend_cfg.h
ext/opcache/Optimizer/zend_dump.c
ext/opcache/Optimizer/zend_dump.h
ext/opcache/Optimizer/zend_optimizer_internal.h