Skip to content

Commit 5b6334e

Browse files
committed
Add trampoline source
1 parent 26b2856 commit 5b6334e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Tools/jit/trampoline.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "Python.h"
2+
3+
#include "pycore_ceval.h"
4+
#include "pycore_frame.h"
5+
#include "pycore_jit.h"
6+
7+
#include "jit.h"
8+
9+
_Py_CODEUNIT *
10+
_JIT_ENTRY(
11+
_PyExecutorObject *exec, _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate
12+
) {
13+
typedef DECLARE_TARGET((*jit_func));
14+
jit_func jitted = (jit_func)exec->jit_code;
15+
return jitted(frame, stack_pointer, tstate);
16+
}

0 commit comments

Comments
 (0)