mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +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
|
@ -32,6 +32,7 @@ def write_contents(f):
|
|||
"""
|
||||
opcode = find_module('opcode')
|
||||
targets = ['_unknown_opcode'] * 256
|
||||
targets[255] = "TARGET_DO_TRACING"
|
||||
for opname, op in opcode.opmap.items():
|
||||
targets[op] = "TARGET_%s" % opname
|
||||
next_op = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue