2024-01-29 03:48:48 +01:00
|
|
|
#ifndef Py_INTERNAL_JIT_H
|
|
|
|
#define Py_INTERNAL_JIT_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _Py_JIT
|
|
|
|
|
|
|
|
typedef _Py_CODEUNIT *(*jit_func)(_PyInterpreterFrame *frame, PyObject **stack_pointer, PyThreadState *tstate);
|
|
|
|
|
2024-02-20 10:39:55 +01:00
|
|
|
int _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction *trace, size_t length);
|
2024-01-29 03:48:48 +01:00
|
|
|
void _PyJIT_Free(_PyExecutorObject *executor);
|
|
|
|
|
|
|
|
#endif // _Py_JIT
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !Py_INTERNAL_JIT_H
|