mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-128914: Remove conditional stack effects from bytecodes.c
and the code generators (GH-128918)
This commit is contained in:
parent
0a6412f9cc
commit
ab61d3f430
44 changed files with 1460 additions and 1679 deletions
|
@ -868,7 +868,7 @@ class TestRacesDoNotCrash(TestBase):
|
|||
pass
|
||||
type(item).m = lambda self: None
|
||||
|
||||
opname = "LOAD_ATTR_METHOD_LAZY_DICT"
|
||||
opname = "LOAD_METHOD_LAZY_DICT"
|
||||
self.assert_races_do_not_crash(opname, get_items, read, write)
|
||||
|
||||
@requires_specialization_ft
|
||||
|
@ -899,7 +899,7 @@ class TestRacesDoNotCrash(TestBase):
|
|||
pass
|
||||
type(item).m = lambda self: None
|
||||
|
||||
opname = "LOAD_ATTR_METHOD_NO_DICT"
|
||||
opname = "LOAD_METHOD_NO_DICT"
|
||||
self.assert_races_do_not_crash(opname, get_items, read, write)
|
||||
|
||||
@requires_specialization_ft
|
||||
|
@ -929,7 +929,7 @@ class TestRacesDoNotCrash(TestBase):
|
|||
pass
|
||||
type(item).m = lambda self: None
|
||||
|
||||
opname = "LOAD_ATTR_METHOD_WITH_VALUES"
|
||||
opname = "LOAD_METHOD_WITH_VALUES"
|
||||
self.assert_races_do_not_crash(opname, get_items, read, write)
|
||||
|
||||
@requires_specialization_ft
|
||||
|
@ -1424,8 +1424,9 @@ class TestSpecializer(TestBase):
|
|||
A()
|
||||
|
||||
self.assert_specialized(A.__init__, "LOAD_SUPER_ATTR_ATTR")
|
||||
self.assert_specialized(A.__init__, "LOAD_SUPER_ATTR_METHOD")
|
||||
self.assert_specialized(A.__init__, "LOAD_SUPER_METHOD_METHOD")
|
||||
self.assert_no_opcode(A.__init__, "LOAD_SUPER_ATTR")
|
||||
self.assert_no_opcode(A.__init__, "LOAD_SUPER_METHOD")
|
||||
|
||||
# Temporarily replace super() with something else.
|
||||
real_super = super
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue