com php-src: Compare only "significant" bits: ext/opcache/jit/z end_jit_x86.dasc
| From: | Dmitry Stogov | Date: | Tue, 09 Apr 2019 08:28:29 +0000 |
| Subject: | com php-src: Compare only "significant" bits: ext/opcache/jit/z end_jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105592@lists.php.net to get a copy of this message | ||
Commit: 9c14cfdc78d3599537ef16ae116053c9c2b1448d
Author: Dmitry Stogov <dmitry@zend.com> Tue, 9 Apr 2019 11:28:29 +0300
Parents: 8afb3e68565613df52ca6aec7ace09609f86d552
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9c14cfdc78d3599537ef16ae116053c9c2b1448d
Log:
Compare only "significant" bits
Changed paths:
M ext/opcache/jit/zend_jit_x86.dasc
Diff:
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index 3dd6f41..0df4ae8 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -1132,7 +1132,7 @@ static void* dasm_labels[zend_lb_MAX];
|| if ((src_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE)) &&
|| has_concrete_type(src_info & MAY_BE_ANY)) {
|| if (Z_MODE(dst_addr) == IS_MEM_ZVAL) {
-|| if (dst_info != src_info) {
+|| if ((dst_info & (MAY_BE_ANY|MAY_BE_UNDEF)) != (src_info & (MAY_BE_ANY|MAY_BE_UNDEF)))
{
|| zend_uchar type = concrete_type(src_info);
| SET_ZVAL_TYPE_INFO dst_addr, type
|| }
@@ -1220,7 +1220,7 @@ static void* dasm_labels[zend_lb_MAX];
|| has_concrete_type(src_info & MAY_BE_ANY)) {
|| zend_uchar type = concrete_type(src_info);
|| if (Z_MODE(dst_addr) == IS_MEM_ZVAL) {
-|| if (((dst_info & MAY_BE_ANY) != (1<<type)) || (dst_info &
(MAY_BE_STRING|MAY_BE_ARRAY)) != 0) {
+|| if ((dst_info & (MAY_BE_ANY|MAY_BE_UNDEF)) != (src_info & (MAY_BE_ANY|MAY_BE_UNDEF)))
{
| SET_ZVAL_TYPE_INFO dst_addr, type
|| }
|| }