Commit 9692947
committed
PoC1: Move materialize_frames from side exits to jit_exec/JIT_EXEC
Instead of calling rb_zjit_materialize_frames in every side exit's
generated code, call zjit_materialize_frames once in jit_exec() and
JIT_EXEC() after the ZJIT entry trampoline returns. This reduces
generated code size by removing a C function call from each unique
side exit.1 parent 62c6d03 commit 9692947
4 files changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
| |||
578 | 580 | | |
579 | 581 | | |
580 | 582 | | |
581 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
582 | 591 | | |
583 | 592 | | |
584 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2641 | 2641 | | |
2642 | 2642 | | |
2643 | 2643 | | |
2644 | | - | |
2645 | | - | |
2646 | | - | |
2647 | | - | |
2648 | | - | |
2649 | | - | |
2650 | 2644 | | |
2651 | 2645 | | |
2652 | 2646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2911 | 2911 | | |
2912 | 2912 | | |
2913 | 2913 | | |
2914 | | - | |
2915 | | - | |
2916 | | - | |
2917 | | - | |
| 2914 | + | |
| 2915 | + | |
2918 | 2916 | | |
2919 | 2917 | | |
2920 | 2918 | | |
| |||
0 commit comments