|Version 2 (modified by moo, 10 years ago) (diff)|
Cache opcode into shared memory.
Setup sandbox for php compiler.
To copy struct safely and efficiently. (xc_processor_store_xc_entry_t + xc_processor_restore_xc_entry_t)
- Calc size of the whole compiler result. (xc_calc_xc_entry_t)
- Allocate memory in shm with this size. (xc_mem_malloc)
- Copy to shm after compile. (xc_store_xc_entry_t)
- Copy from shm on cache hit. (xc_restore_xc_entry_t)
Shared memory provider. (aka. shm)
Only mmap is supported as shm currently.
Lock provider, to operate shm atomicly.
Memory manager, working on top of shm + lock. It's something like malloc/emalloc family, but works on shm.
XCache administration scripts.
To optimize opcode. (N/A)
Collect coverage info.
Produce visual output from the coverage data.
Live Test Runner
An LivingTest? framework that help to hit your code generating coverage data. (TOSHARE)
Assemble from asm code to opcode data. (N/A)
Disassemble opcode data to asm code.
Decompile opcode data to php code using Disassembler.
Encode opcode data to file. (N/A)
Decode opcode data from file. (aka. loader) (N/A)