com php-src: Avoid NEW opcode inlining when opcache.jit=1 : ext/opcache/jit/zend_jit_x86.dasc

From: Date: Tue, 02 Apr 2019 15:44:58 +0000
Subject: com php-src: Avoid NEW opcode inlining when opcache.jit=1 : ext/opcache/jit/zend_jit_x86.dasc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105490@lists.php.net to get a copy of this message
Commit: 12da21b1c184d885039a0d991b8c25e4dab7ccc6 Author: Dmitry Stogov <dmitry@zend.com> Tue, 2 Apr 2019 18:44:58 +0300 Parents: 278c8e7b59e9a7ab96901d7a0816d5226acb6363 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12da21b1c184d885039a0d991b8c25e4dab7ccc6 Log: Avoid NEW opcode inlining when opcache.jit=1 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 55222cf..ab6a2de 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -7852,11 +7852,11 @@ static int zend_jit_new(dasm_State **Dst, const zend_op *opline, int *opnum, zen | CMP_IP next_opline | jne >6 -#if 0 - zend_jit_call(Dst, next_opline); -#else - zend_jit_do_fcall(Dst, next_opline, op_array, ssa, call_level); -#endif + if (zend_jit_level < ZEND_JIT_LEVEL_INLINE) { + zend_jit_call(Dst, next_opline); + } else { + zend_jit_do_fcall(Dst, next_opline, op_array, ssa, call_level); + } |6: } }

« previous php.cvs (#105490) next »