|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 23-Nov-2023 | - |
| dynasm/ | H | 11-Aug-2022 | - | | |
| libudis86/ | H | 19-Aug-2022 | - | | |
| vtune/ | H | 11-Aug-2022 | - | | |
| Makefile.frag | H A D | 31-Aug-2021 | 901 | 22 | 15 |
| Makefile.frag.w32 | H A D | 31-Aug-2021 | 889 | 18 | 15 |
| README.md | H A D | 11-Aug-2022 | 1.2 KiB | 29 | 21 |
| zend_elf.c | H A D | 31-Aug-2021 | 3.9 KiB | 122 | 92 |
| zend_elf.h | H A D | 31-Aug-2021 | 2.9 KiB | 116 | 84 |
| zend_jit.c | H A D | 02-Nov-2023 | 148.8 KiB | 5,235 | 4,580 |
| zend_jit.h | H A D | 11-Aug-2022 | 7.7 KiB | 192 | 143 |
| zend_jit_arm64.dasc | H A D | 09-Dec-2024 | 472.7 KiB | 15,642 | 14,496 |
| zend_jit_arm64.h | H A D | 31-Aug-2021 | 3.8 KiB | 158 | 118 |
| zend_jit_disasm.c | H A D | 03-Mar-2023 | 22.9 KiB | 781 | 695 |
| zend_jit_gdb.c | H A D | 31-Aug-2021 | 15 KiB | 523 | 415 |
| zend_jit_gdb.h | H A D | 31-Aug-2021 | 1.7 KiB | 38 | 13 |
| zend_jit_helpers.c | H A D | 23-Nov-2023 | 87.6 KiB | 3,140 | 2,699 |
| zend_jit_internal.h | H A D | 20-Jun-2023 | 28.7 KiB | 834 | 690 |
| zend_jit_oprofile.c | H A D | 31-Aug-2021 | 1.8 KiB | 51 | 26 |
| zend_jit_perf_dump.c | H A D | 11-Aug-2022 | 7.2 KiB | 273 | 207 |
| zend_jit_trace.c | H A D | 13-Nov-2023 | 278.5 KiB | 8,440 | 7,640 |
| zend_jit_vm_helpers.c | H A D | 11-Aug-2022 | 37.6 KiB | 1,193 | 1,015 |
| zend_jit_vtune.c | H A D | 31-Aug-2021 | 1.9 KiB | 47 | 21 |
| zend_jit_x86.dasc | H A D | 09-Dec-2024 | 469.5 KiB | 16,523 | 15,401 |
| zend_jit_x86.h | H A D | 31-Aug-2021 | 4.8 KiB | 158 | 119 |
README.md
1Opcache JIT
2===========
3
4This is the implementation of Opcache's JIT (Just-In-Time compiler),
5This converts the PHP Virtual Machine's opcodes into x64/x86 assembly,
6on POSIX platforms and Windows.
7
8It generates native code directly from PHP byte-code and information collected
9by the SSA static analysis framework (a part of the opcache optimizer).
10Code is usually generated separately for each PHP byte-code instruction. Only
11a few combinations are considered together (e.g. compare + conditional jump).
12
13See [the JIT RFC](https://wiki.php.net/rfc/jit) for more details.
14
15DynAsm
16------
17
18This uses [DynAsm](https://luajit.org/dynasm.html) (developed for LuaJIT project)
19for the generation of native code. It's a very lightweight and advanced tool,
20but does assume good, and very low-level development knowledge of target
21assembler languages. In the past we tried LLVM, but its code generation speed
22was almost 100 times slower, making it prohibitively expensive to use.
23
24[The unofficial DynASM Documentation](https://corsix.github.io/dynasm-doc/tutorial.html)
25has a tutorial, reference, and instruction listing.
26
27`zend_jit_x86.dasc` gets automatically converted to `zend_jit_x86.c` by the bundled
28`dynasm` during `make`.
29