mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Uses three registers to cache values at the top of the evaluation stack This significantly reduces memory traffic for smaller, more common uops.
16 lines
490 B
C
16 lines
490 B
C
#include "Python.h"
|
|
|
|
#include "pycore_ceval.h"
|
|
#include "pycore_frame.h"
|
|
#include "pycore_jit.h"
|
|
|
|
#include "jit.h"
|
|
|
|
_Py_CODEUNIT *
|
|
_JIT_ENTRY(
|
|
_PyExecutorObject *exec, _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate
|
|
) {
|
|
// Note that this is *not* a tail call
|
|
jit_func_preserve_none jitted = (jit_func_preserve_none)exec->jit_code;
|
|
return jitted(frame, stack_pointer, tstate, PyStackRef_ZERO_BITS, PyStackRef_ZERO_BITS, PyStackRef_ZERO_BITS);
|
|
}
|