mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-91095: Specialize calls to normal Python classes. (GH-99331)
This commit is contained in:
parent
c01da2896a
commit
04492cbc9a
20 changed files with 511 additions and 189 deletions
|
@ -641,6 +641,8 @@ static const _Py_CODEUNIT _Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS[] = {
|
|||
{ .op.code = RESUME, .op.arg = 0 }
|
||||
};
|
||||
|
||||
extern const struct _PyCode_DEF(8) _Py_InitCleanup;
|
||||
|
||||
/* Disable unused label warnings. They are handy for debugging, even
|
||||
if computed gotos aren't used. */
|
||||
|
||||
|
@ -746,7 +748,7 @@ resume_frame:
|
|||
|
||||
#ifdef LLTRACE
|
||||
{
|
||||
if (frame != &entry_frame) {
|
||||
if (frame != &entry_frame && GLOBALS()) {
|
||||
int r = PyDict_Contains(GLOBALS(), &_Py_ID(__lltrace__));
|
||||
if (r < 0) {
|
||||
goto exit_unwind;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue