Skip to content

Commit 9820340

Browse files
Cleanup
1 parent 982c51d commit 9820340

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

Python/ceval.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
821821
int lltrace = 0;
822822
#endif
823823

824-
_PyInterpreterFrame e;
825-
_PyInterpreterFrame *entry_frame = &e;
824+
_PyInterpreterFrame entry_f;
825+
_PyInterpreterFrame *entry_frame = &entry_f;
826826

827827

828828

@@ -834,14 +834,14 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
834834
e.f_globals = (PyObject*)0xaaa3;
835835
e.f_builtins = (PyObject*)0xaaa4;
836836
#endif
837-
e.f_executable = PyStackRef_None;
838-
e.instr_ptr = (_Py_CODEUNIT *)_Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS + 1;
839-
e.stackpointer = e.localsplus;
840-
e.owner = FRAME_OWNED_BY_CSTACK;
841-
e.visited = 0;
842-
e.return_offset = 0;
837+
entry_f.f_executable = PyStackRef_None;
838+
entry_f.instr_ptr = (_Py_CODEUNIT *)_Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS + 1;
839+
entry_f.stackpointer = entry_f.localsplus;
840+
entry_f.owner = FRAME_OWNED_BY_CSTACK;
841+
entry_f.visited = 0;
842+
entry_f.return_offset = 0;
843843
/* Push frame */
844-
e.previous = tstate->current_frame;
844+
entry_f.previous = tstate->current_frame;
845845
frame->previous = entry_frame;
846846
tstate->current_frame = frame;
847847

Tools/cases_generator/tier1_tail_call_generator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55

66
import argparse
7-
import re
87

98
from typing import TextIO
109

@@ -60,7 +59,7 @@ def error_handler(out: CWriter, body: str, next: str, emit_tail_call: bool = Tru
6059

6160

6261
def generate_tier1(
63-
filenames: list[str], analysis: Analysis, outfile: TextIO, lines: bool
62+
filenames: list[str], analysis: Analysis, outfile: TextIO, lines: bool
6463
) -> None:
6564
write_header(__file__, filenames, outfile)
6665
outfile.write(
@@ -217,7 +216,6 @@ def generate_tier1(
217216
out.emit("\n")
218217
out.emit(function_proto(name))
219218
out.emit("{\n")
220-
# out.emit(f'printf("{name}\\n");\n')
221219
out.emit("int opcode = next_instr->op.code;\n")
222220
out.emit("{\n")
223221
write_single_inst(out, emitter, name, inst)

0 commit comments

Comments
 (0)