gh-91869: Fix tracing of specialized instructions with extended args (GH-91945)

This commit is contained in:
Dennis Sweeney 2022-04-28 00:36:34 -04:00 committed by GitHub
parent 407c3afe19
commit 37c6db60f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 145 additions and 88 deletions

View file

@ -5624,6 +5624,15 @@ handle_eval_breaker:
}
TARGET(EXTENDED_ARG) {
assert(oparg);
oparg <<= 8;
oparg |= _Py_OPARG(*next_instr);
opcode = _PyOpcode_Deopt[_Py_OPCODE(*next_instr)];
PRE_DISPATCH_GOTO();
DISPATCH_GOTO();
}
TARGET(EXTENDED_ARG_QUICK) {
assert(oparg);
oparg <<= 8;
oparg |= _Py_OPARG(*next_instr);