mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-115802: JIT "small" code for Windows (GH-115964)
This commit is contained in:
parent
45d8871dc4
commit
f0df35eeca
26 changed files with 129 additions and 96 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "pycore_long.h"
|
||||
#include "pycore_opcode_metadata.h"
|
||||
#include "pycore_opcode_utils.h"
|
||||
#include "pycore_optimizer.h"
|
||||
#include "pycore_range.h"
|
||||
#include "pycore_setobject.h"
|
||||
#include "pycore_sliceobject.h"
|
||||
|
|
@ -58,11 +59,11 @@ do { \
|
|||
} while (0)
|
||||
|
||||
#define PATCH_VALUE(TYPE, NAME, ALIAS) \
|
||||
extern void ALIAS; \
|
||||
PyAPI_DATA(void) ALIAS; \
|
||||
TYPE NAME = (TYPE)(uint64_t)&ALIAS;
|
||||
|
||||
#define PATCH_JUMP(ALIAS) \
|
||||
extern void ALIAS; \
|
||||
PyAPI_DATA(void) ALIAS; \
|
||||
__attribute__((musttail)) \
|
||||
return ((jit_func)&ALIAS)(frame, stack_pointer, tstate);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue