mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-139109: Support switch/case dispatch with the tracing interpreter. (GH-141703)
This commit is contained in:
parent
b87613f214
commit
b420f6be53
18 changed files with 617 additions and 585 deletions
|
|
@ -191,7 +191,7 @@ is_instrumented(int opcode)
|
|||
{
|
||||
assert(opcode != 0);
|
||||
assert(opcode != RESERVED);
|
||||
return opcode != ENTER_EXECUTOR && opcode >= MIN_INSTRUMENTED_OPCODE;
|
||||
return opcode < ENTER_EXECUTOR && opcode >= MIN_INSTRUMENTED_OPCODE;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
|
@ -526,7 +526,7 @@ valid_opcode(int opcode)
|
|||
if (IS_VALID_OPCODE(opcode) &&
|
||||
opcode != CACHE &&
|
||||
opcode != RESERVED &&
|
||||
opcode < 255)
|
||||
opcode < 254)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue