mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
bpo-47120: Replace the JUMP_ABSOLUTE opcode by the relative JUMP_BACKWARD (GH-32115)
This commit is contained in:
parent
b36d222110
commit
a00518d9ad
15 changed files with 147 additions and 113 deletions
|
|
@ -270,8 +270,8 @@ _PyCode_Quicken(PyCodeObject *code)
|
|||
else {
|
||||
assert(!_PyOpcode_Caches[opcode]);
|
||||
switch (opcode) {
|
||||
case JUMP_ABSOLUTE:
|
||||
_Py_SET_OPCODE(instructions[i], JUMP_ABSOLUTE_QUICK);
|
||||
case JUMP_BACKWARD:
|
||||
_Py_SET_OPCODE(instructions[i], JUMP_BACKWARD_QUICK);
|
||||
break;
|
||||
case RESUME:
|
||||
_Py_SET_OPCODE(instructions[i], RESUME_QUICK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue