mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-43760: Check for tracing using 'bitwise or' instead of branch in dispatch. (GH-28723)
This commit is contained in:
parent
ef6196028f
commit
bd627eb7ed
7 changed files with 249 additions and 217 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue