com php-src: Fixed JIT for === and !==: ext/o pcache/jit/zend_jit_x86.dasc

From: Date: Thu, 04 Apr 2019 22:12:34 +0000
Subject: com php-src: Fixed JIT for === and !==: ext/o pcache/jit/zend_jit_x86.dasc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105525@lists.php.net to get a copy of this message
Commit: df6709f480ce2d53b9944ffdf29e7a8ecad9d551 Author: Dmitry Stogov <dmitry@zend.com> Fri, 5 Apr 2019 01:12:34 +0300 Parents: 5b34c87d181d379e4c5212a07f6b39d151508b79 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=df6709f480ce2d53b9944ffdf29e7a8ecad9d551 Log: Fixed JIT for === and !== 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 770aca2..5ecdf80 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -6534,8 +6534,8 @@ static int zend_jit_identical(dasm_State **Dst, const zend_op *opline, int b, in zend_jit_check_exception_undef_result(Dst, opline); | mov r0, aword T1 // restore } - | test r0, r0 if (smart_branch) { + | test al, al if (not_identical_label != (uint32_t)-1) { | jz =>not_identical_label if (identical_label != (uint32_t)-1) { @@ -6545,13 +6545,13 @@ static int zend_jit_identical(dasm_State **Dst, const zend_op *opline, int b, in | jnz =>identical_label } } else { + | movzx eax, al if (opline->opcode == ZEND_IS_IDENTICAL) { - | setnz al + | lea eax, [eax + 2] } else { - | setz al + | neg eax + | lea eax, [eax + 3] } - | movzx eax, al - | lea eax, [eax + 2] | SET_ZVAL_TYPE_INFO res_addr, eax } }

« previous php.cvs (#105525) next »