diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-07-22 18:04:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 18:04:20 (GMT) |
commit | e402b26b7fb953a2f0c17a0044bb6d6cbd726e54 (patch) | |
tree | b0b4dc8fd76d64028e0018066de86900949364e4 /Tools | |
parent | 79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62 (diff) | |
download | cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.zip cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.tar.gz cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.tar.bz2 |
GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/generate_opcode_h.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py index 1d21af8..9ff264a 100644 --- a/Tools/scripts/generate_opcode_h.py +++ b/Tools/scripts/generate_opcode_h.py @@ -131,7 +131,6 @@ def main(opcode_py, outfile='Include/opcode.h', internaloutfile='Include/interna iobj.write("\nextern const uint8_t _PyOpcode_Caches[256];\n") iobj.write("\nextern const uint8_t _PyOpcode_Deopt[256];\n") - iobj.write("\nextern const uint8_t _PyOpcode_Original[256];\n") iobj.write("\n#ifdef NEED_OPCODE_TABLES\n") write_int_array_from_ops("_PyOpcode_RelativeJump", opcode['hasjrel'], iobj) write_int_array_from_ops("_PyOpcode_Jump", opcode['hasjrel'] + opcode['hasjabs'], iobj) @@ -153,12 +152,6 @@ def main(opcode_py, outfile='Include/opcode.h', internaloutfile='Include/interna for opt, deopt in sorted(deoptcodes.items()): iobj.write(f" [{opt}] = {deopt},\n") iobj.write("};\n") - iobj.write("\nconst uint8_t _PyOpcode_Original[256] = {\n") - for opt, deopt in sorted(deoptcodes.items()): - if opt.startswith("EXTENDED_ARG"): - deopt = "EXTENDED_ARG_QUICK" - iobj.write(f" [{opt}] = {deopt},\n") - iobj.write("};\n") iobj.write("#endif // NEED_OPCODE_TABLES\n") fobj.write("\n") |