mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-142276: Watch attribute loads when promoting JIT constants (GH-142303)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Savannah Ostrowski <savannah@python.org>
This commit is contained in:
parent
e0451ceef8
commit
97f0a1f203
5 changed files with 38 additions and 13 deletions
|
|
@ -607,7 +607,7 @@ dummy_func(void) {
|
|||
(void)descr;
|
||||
PyTypeObject *type = (PyTypeObject *)sym_get_const(ctx, owner);
|
||||
PyObject *name = get_co_name(ctx, oparg >> 1);
|
||||
attr = lookup_attr(ctx, this_instr, type, name,
|
||||
attr = lookup_attr(ctx, dependencies, this_instr, type, name,
|
||||
_POP_TOP_LOAD_CONST_INLINE_BORROW,
|
||||
_POP_TOP_LOAD_CONST_INLINE);
|
||||
}
|
||||
|
|
@ -616,7 +616,7 @@ dummy_func(void) {
|
|||
(void)descr;
|
||||
PyTypeObject *type = sym_get_type(owner);
|
||||
PyObject *name = get_co_name(ctx, oparg >> 1);
|
||||
attr = lookup_attr(ctx, this_instr, type, name,
|
||||
attr = lookup_attr(ctx, dependencies, this_instr, type, name,
|
||||
_POP_TOP_LOAD_CONST_INLINE_BORROW,
|
||||
_POP_TOP_LOAD_CONST_INLINE);
|
||||
}
|
||||
|
|
@ -625,7 +625,7 @@ dummy_func(void) {
|
|||
(void)descr;
|
||||
PyTypeObject *type = sym_get_type(owner);
|
||||
PyObject *name = get_co_name(ctx, oparg >> 1);
|
||||
attr = lookup_attr(ctx, this_instr, type, name,
|
||||
attr = lookup_attr(ctx, dependencies, this_instr, type, name,
|
||||
_POP_TOP_LOAD_CONST_INLINE_BORROW,
|
||||
_POP_TOP_LOAD_CONST_INLINE);
|
||||
}
|
||||
|
|
@ -634,7 +634,7 @@ dummy_func(void) {
|
|||
(void)descr;
|
||||
PyTypeObject *type = sym_get_type(owner);
|
||||
PyObject *name = get_co_name(ctx, oparg >> 1);
|
||||
attr = lookup_attr(ctx, this_instr, type, name,
|
||||
attr = lookup_attr(ctx, dependencies, this_instr, type, name,
|
||||
_LOAD_CONST_UNDER_INLINE_BORROW,
|
||||
_LOAD_CONST_UNDER_INLINE);
|
||||
self = owner;
|
||||
|
|
@ -644,7 +644,7 @@ dummy_func(void) {
|
|||
(void)descr;
|
||||
PyTypeObject *type = sym_get_type(owner);
|
||||
PyObject *name = get_co_name(ctx, oparg >> 1);
|
||||
attr = lookup_attr(ctx, this_instr, type, name,
|
||||
attr = lookup_attr(ctx, dependencies, this_instr, type, name,
|
||||
_LOAD_CONST_UNDER_INLINE_BORROW,
|
||||
_LOAD_CONST_UNDER_INLINE);
|
||||
self = owner;
|
||||
|
|
@ -654,7 +654,7 @@ dummy_func(void) {
|
|||
(void)descr;
|
||||
PyTypeObject *type = sym_get_type(owner);
|
||||
PyObject *name = get_co_name(ctx, oparg >> 1);
|
||||
attr = lookup_attr(ctx, this_instr, type, name,
|
||||
attr = lookup_attr(ctx, dependencies, this_instr, type, name,
|
||||
_LOAD_CONST_UNDER_INLINE_BORROW,
|
||||
_LOAD_CONST_UNDER_INLINE);
|
||||
self = owner;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue