Skip to content

Commit d0920ea

Browse files
committed
Specialize instance accesses
1 parent 16aab70 commit d0920ea

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Lib/test/test_opcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def write(items):
777777
opname = "LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN"
778778
self.assert_races_do_not_crash(opname, get_items, read, write)
779779

780-
@requires_specialization
780+
@requires_specialization_ft
781781
def test_load_attr_instance_value(self):
782782
def get_items():
783783
class C:
@@ -947,7 +947,7 @@ def write(items):
947947
opname = "LOAD_ATTR_PROPERTY"
948948
self.assert_races_do_not_crash(opname, get_items, read, write)
949949

950-
@requires_specialization
950+
@requires_specialization_ft
951951
def test_load_attr_with_hint(self):
952952
def get_items():
953953
class C:

Python/specialize.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,6 @@ do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject*
11531153
case METHOD:
11541154
{
11551155
if (shadow) {
1156-
FT_UNIMPLEMENTED();
11571156
goto try_instance;
11581157
}
11591158
int oparg = instr->op.arg;
@@ -1282,8 +1281,6 @@ do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject*
12821281
}
12831282
return -1;
12841283
case NON_DESCRIPTOR:
1285-
FT_UNIMPLEMENTED();
1286-
12871284
if (shadow) {
12881285
goto try_instance;
12891286
}
@@ -1304,8 +1301,6 @@ do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject*
13041301
}
13051302
Py_UNREACHABLE();
13061303
try_instance:
1307-
FT_UNIMPLEMENTED();
1308-
13091304
if (specialize_dict_access(owner, instr, type, tp_version, kind, name, LOAD_ATTR,
13101305
LOAD_ATTR_INSTANCE_VALUE, LOAD_ATTR_WITH_HINT))
13111306
{

0 commit comments

Comments
 (0)