Skip to content

Commit cf22d4a

Browse files
replace mermaid chart with svg
1 parent d3deff9 commit cf22d4a

2 files changed

Lines changed: 104 additions & 6 deletions

File tree

posts/faster-jit-plan.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ Profiling and debugger support is a must-have if we want the JIT to be productio
2828

2929
Our current JIT region selection algorithm could be improved. Here's the current pipeline:
3030

31-
```mermaid
32-
flowchart LR
33-
A[Bytecode] -->|Region selector| B[Micro-operation Intermediate Representation]
34-
B -->|Optimizer| C[Optimized Micro-operation Stream]
35-
C -->|Copy-and-Patch| D[Machine Code]
36-
```
31+
![CPython's JIT Pipeline](./media/jit-flowchart.svg)
32+
3733

3834
The *region selector*, aka. the JIT frontend, uses *trace projection*. In short, we guess where the traces will go, and use historical data from the interpreter's [inline caches](https://en.wikipedia.org/wiki/Inline_caching) to feed type information into our IR.
3935

posts/media/jit-flowchart.svg

Lines changed: 102 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)