diff options
author | Mark Shannon <mark@hotpy.org> | 2021-10-05 11:01:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 11:01:11 +0100 |
commit | bd627eb7ed08a891dd1356756feb1ce2600358e4 (patch) | |
tree | fa2bb6db2fbdca1d08cd685d537c2db5d95e6192 /Tools/scripts/generate_opcode_h.py | |
parent | ef6196028f966f22d82930b66e1371e75c5df2f7 (diff) | |
download | cpython-bd627eb7ed08a891dd1356756feb1ce2600358e4.tar.gz cpython-bd627eb7ed08a891dd1356756feb1ce2600358e4.zip |
bpo-43760: Check for tracing using 'bitwise or' instead of branch in dispatch. (GH-28723)
Diffstat (limited to 'Tools/scripts/generate_opcode_h.py')
-rw-r--r-- | Tools/scripts/generate_opcode_h.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py index 48875d2a9dd..dca9bbcfcbc 100644 --- a/Tools/scripts/generate_opcode_h.py +++ b/Tools/scripts/generate_opcode_h.py @@ -72,7 +72,7 @@ def main(opcode_py, outfile='Include/opcode.h'): next_op += 1 fobj.write("#define %-23s %3s\n" % (name, next_op)) used[next_op] = True - + fobj.write("#define DO_TRACING 255\n") fobj.write("#ifdef NEED_OPCODE_JUMP_TABLES\n") write_int_array_from_ops("_PyOpcode_RelativeJump", opcode['hasjrel'], fobj) write_int_array_from_ops("_PyOpcode_Jump", opcode['hasjrel'] + opcode['hasjabs'], fobj) |