1 #ifndef Py_INTERNAL_JIT_H 2 #define Py_INTERNAL_JIT_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #ifndef Py_BUILD_CORE 9 # error "this header requires Py_BUILD_CORE define" 10 #endif 11 12 #ifdef _Py_JIT 13 14 typedef _Py_CODEUNIT *(*jit_func)(_PyInterpreterFrame *frame, PyObject **stack_pointer, PyThreadState *tstate); 15 16 int _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction *trace, size_t length); 17 void _PyJIT_Free(_PyExecutorObject *executor); 18 19 #endif // _Py_JIT 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif // !Py_INTERNAL_JIT_H 26