summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-07-03 10:50:14 +0300
committerDmitry Stogov <dmitry@zend.com>2019-07-03 10:50:14 +0300
commit6188a69b8ac24674d002cbaa523c83ac2c0d4017 (patch)
treea6fcc2424365b66aae0efd6fabc5d0023c3e0d37 /Zend/zend_compile.h
parent1a50d84e2615a0e720f7238d34be4adb9fcf0d6f (diff)
parent56b8b165f87e54c8f381d4acfa0b1459b240b74a (diff)
downloadphp-git-6188a69b8ac24674d002cbaa523c83ac2c0d4017.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Optimization of INC/DEC helpers
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r--Zend/zend_compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 37ce5e9c88..344b6cc245 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -992,6 +992,9 @@ static zend_always_inline int zend_check_arg_send_type(const zend_function *zf,
#define ZEND_SYMBOL_FUNCTION (1<<1)
#define ZEND_SYMBOL_CONST (1<<2)
+/* All increment opcodes are even (decrement are odd) */
+#define ZEND_IS_INCREMENT(opcode) (((opcode) & 1) == 0)
+
/* Pseudo-opcodes that are used only temporarily during compilation */
#define ZEND_GOTO 253
#define ZEND_BRK 254