mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-115802: Use the GHC calling convention in JIT code (GH-118287)
This commit is contained in:
parent
beb653cc24
commit
49baa656cb
8 changed files with 117 additions and 27 deletions
|
|
@ -48,7 +48,7 @@
|
|||
do { \
|
||||
OPT_STAT_INC(traces_executed); \
|
||||
__attribute__((musttail)) \
|
||||
return ((jit_func)((EXECUTOR)->jit_code))(frame, stack_pointer, tstate); \
|
||||
return ((jit_func)((EXECUTOR)->jit_side_entry))(frame, stack_pointer, tstate); \
|
||||
} while (0)
|
||||
|
||||
#undef GOTO_TIER_ONE
|
||||
|
|
@ -65,7 +65,7 @@ do { \
|
|||
|
||||
#define PATCH_VALUE(TYPE, NAME, ALIAS) \
|
||||
PyAPI_DATA(void) ALIAS; \
|
||||
TYPE NAME = (TYPE)(uint64_t)&ALIAS;
|
||||
TYPE NAME = (TYPE)(uintptr_t)&ALIAS;
|
||||
|
||||
#define PATCH_JUMP(ALIAS) \
|
||||
do { \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue