mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
This commit is contained in:
commit
fd55b50833
2 changed files with 10 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -12,6 +12,9 @@ PHP NEWS
|
|||
. Fixed bug GH-8805 (finfo returns wrong mime type for woff/woff2 files).
|
||||
(Anatol)
|
||||
|
||||
- Opcache:
|
||||
. Added indirect call reduction for jit on x86 architectures. (wxue1)
|
||||
|
||||
- Sockets:
|
||||
. Fixed socket constants regression as of PHP 8.2.0beta3. (Bruce Dou)
|
||||
|
||||
|
|
|
@ -152,6 +152,11 @@ static size_t tsrm_tls_offset;
|
|||
|
||||
#define IS_SIGNED_32BIT(val) ((((intptr_t)(val)) <= 0x7fffffff) && (((intptr_t)(val)) >= (-2147483647 - 1)))
|
||||
|
||||
/* Call range is before or after 2GB */
|
||||
#define MAY_USE_32BIT_ADDR(addr) \
|
||||
(IS_SIGNED_32BIT((char*)(addr) - (char*)dasm_buf) && \
|
||||
IS_SIGNED_32BIT((char*)(addr) - (char*)dasm_end))
|
||||
|
||||
#define CAN_USE_AVX() (JIT_G(opt_flags) & allowed_opt_flags & ZEND_JIT_CPU_AVX)
|
||||
|
||||
/* Not Implemented Yet */
|
||||
|
@ -353,7 +358,7 @@ static size_t tsrm_tls_offset;
|
|||
|
||||
|.macro EXT_CALL, func, tmp_reg
|
||||
| .if X64
|
||||
|| if (IS_32BIT(dasm_end) && IS_32BIT(func)) {
|
||||
|| if (MAY_USE_32BIT_ADDR(func)) {
|
||||
| call qword &func
|
||||
|| } else {
|
||||
| LOAD_ADDR tmp_reg, func
|
||||
|
@ -366,7 +371,7 @@ static size_t tsrm_tls_offset;
|
|||
|
||||
|.macro EXT_JMP, func, tmp_reg
|
||||
| .if X64
|
||||
|| if (IS_32BIT(dasm_end) && IS_32BIT(func)) {
|
||||
|| if (MAY_USE_32BIT_ADDR(func)) {
|
||||
| jmp qword &func
|
||||
|| } else {
|
||||
| LOAD_ADDR tmp_reg, func
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue