8000 gh-120323: Remove class check for redundant _CHECK_ATTR_CLASS by Fidget-Spinner · Pull Request #121002 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120323: Remove class check for redundant _CHECK_ATTR_CLASS #121002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix refcounting issue
  • Loading branch information
Fidget-Spinner committed Jun 11, 2024
commit 011477fdfbb62a481751abdfe983b329307ecc8c
53 changes: 27 additions & 26 deletions Include/internal/pycore_uop_ids.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Include/internal/pycore_uop_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -4238,6 +4238,11 @@ dummy_func(
value = Py_NewRef(ptr);
}

tier2 pure op (_POP_TOP_LOAD_CONST_INLINE, (ptr/4, pop -- value)) {
Py_DECREF(pop);
value = Py_NewRef(ptr);
}

tier2 pure op(_LOAD_CONST_INLINE_BORROW, (ptr/4 -- value)) {
value = ptr;
}
Expand Down
11 changes: 11 additions & 0 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Python/optimizer_bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ dummy_func(void) {
// Previous guards should have already watched the version, so
// we don't need to watch it again.
REPLACE_OP(this_instr, (oparg & 1)
? _POP_TOP_LOAD_CONST_INLINE_WITH_NULL : _POP_TOP_LOAD_CONST_INLINE_BORROW,
? _POP_TOP_LOAD_CONST_INLINE_WITH_NULL : _POP_TOP_LOAD_CONST_INLINE,
0,
(uintptr_t)descr);
attr = sym_new_const(ctx, descr);
Expand Down
9 changes: 8 additions & 1 deletion Python/optimizer_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0