mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-109214: Rename SAVE_IP to _SET_IP, and similar (#109285)
* Rename SAVE_IP to _SET_IP * Rename EXIT_TRACE to _EXIT_TRACE * Rename SAVE_CURRENT_IP to _SAVE_CURRENT_IP * Rename INSERT to _INSERT (This is for Ken Jin's abstract interpreter) * Rename IS_NONE to _IS_NONE * Rename JUMP_TO_TOP to _JUMP_TO_TOP
This commit is contained in:
parent
1ee50e2a78
commit
fbaf77eb9b
11 changed files with 117 additions and 117 deletions
|
|
@ -2390,7 +2390,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("SAVE_IP", uops)
|
||||
self.assertIn("_SET_IP", uops)
|
||||
self.assertIn("LOAD_FAST", uops)
|
||||
|
||||
def test_extended_arg(self):
|
||||
|
|
@ -2536,7 +2536,7 @@ class TestUops(unittest.TestCase):
|
|||
ex = get_first_executor(testfunc)
|
||||
self.assertIsNotNone(ex)
|
||||
uops = {opname for opname, _, _ in ex}
|
||||
self.assertIn("JUMP_TO_TOP", uops)
|
||||
self.assertIn("_JUMP_TO_TOP", uops)
|
||||
|
||||
def test_jump_forward(self):
|
||||
def testfunc(n):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue