Skip to content

Commit fb1cc3f

Browse files
Rename tail_call_shim to tail_call_entry
1 parent 7fe53d8 commit fb1cc3f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5210,7 +5210,7 @@ dummy_func(
52105210
}
52115211
#endif
52125212
#if defined(Py_TAIL_CALL_INTERP) && !defined(IN_TAIL_CALL_INTERP)
5213-
return _TAIL_CALL_shim(frame, stack_pointer, tstate, next_instr, 0, 0);
5213+
return _TAIL_CALL_entry(frame, stack_pointer, tstate, next_instr, 0, 0);
52145214
#else
52155215
DISPATCH();
52165216
#endif
@@ -5313,7 +5313,7 @@ dummy_func(
53135313
// If we are in a tail call handler, we want to tail call (DISPATCH).
53145314
// If we're not then we need the shim frame.
53155315
#if defined(Py_TAIL_CALL_INTERP) && !defined(IN_TAIL_CALL_INTERP)
5316-
return _TAIL_CALL_shim(frame, stack_pointer, tstate, next_instr, 0, 0);
5316+
return _TAIL_CALL_entry(frame, stack_pointer, tstate, next_instr, 0, 0);
53175317
#else
53185318
DISPATCH();
53195319
#endif

Python/ceval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
770770
#ifdef Py_TAIL_CALL_INTERP
771771
#include "generated_tail_call_handlers.c.h"
772772
static inline PyObject *
773-
_TAIL_CALL_shim(TAIL_CALL_PARAMS)
773+
_TAIL_CALL_entry(TAIL_CALL_PARAMS)
774774
{
775775
opcode = next_instr->op.code;
776776
oparg = next_instr->op.arg;
@@ -882,7 +882,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
882882
#endif
883883

884884
#ifdef Py_TAIL_CALL_INTERP
885-
return _TAIL_CALL_shim(frame, stack_pointer, tstate, next_instr, 0, 0);
885+
return _TAIL_CALL_entry(frame, stack_pointer, tstate, next_instr, 0, 0);
886886
#else
887887
DISPATCH();
888888
#endif

Python/generated_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_tail_call_handlers.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/tier1_tail_call_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def generate_tier1(
165165
"""
166166
)
167167
out = CWriter(outfile, 0, lines)
168-
out.emit("static inline PyObject *_TAIL_CALL_shim(TAIL_CALL_PARAMS);\n")
168+
out.emit("static inline PyObject *_TAIL_CALL_entry(TAIL_CALL_PARAMS);\n")
169169
out.emit("static py_tail_call_funcptr INSTRUCTION_TABLE[256];\n");
170170

171171
generate_label_handlers(analysis, outfile, lines)

0 commit comments

Comments
 (0)