mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-111848: Convert remaining jumps to deopts into tier 2 code. (GH-112045)
This commit is contained in:
parent
b11c443bb2
commit
a519b87958
7 changed files with 194 additions and 139 deletions
|
@ -2610,7 +2610,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("_POP_JUMP_IF_FALSE", uops)
|
||||
self.assertIn("_GUARD_IS_TRUE_POP", uops)
|
||||
|
||||
def test_pop_jump_if_none(self):
|
||||
def testfunc(a):
|
||||
|
@ -2625,7 +2625,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("_POP_JUMP_IF_TRUE", uops)
|
||||
self.assertIn("_GUARD_IS_NOT_NONE_POP", uops)
|
||||
|
||||
def test_pop_jump_if_not_none(self):
|
||||
def testfunc(a):
|
||||
|
@ -2641,7 +2641,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("_POP_JUMP_IF_FALSE", uops)
|
||||
self.assertIn("_GUARD_IS_NONE_POP", uops)
|
||||
|
||||
def test_pop_jump_if_true(self):
|
||||
def testfunc(n):
|
||||
|
@ -2656,7 +2656,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("_POP_JUMP_IF_TRUE", uops)
|
||||
self.assertIn("_GUARD_IS_FALSE_POP", uops)
|
||||
|
||||
def test_jump_backward(self):
|
||||
def testfunc(n):
|
||||
|
@ -2806,7 +2806,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("_POP_JUMP_IF_TRUE", uops)
|
||||
self.assertIn("_GUARD_IS_FALSE_POP", uops)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue