mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
GH-120024: Remove CHECK_EVAL_BREAKER
macro. (GH-122968)
* Factor some instructions into micro-ops to isolate CHECK_EVAL_BREAKER for escape analysis * Eliminate CHECK_EVAL_BREAKER macro
This commit is contained in:
parent
315a933a5b
commit
eec7bdaf01
16 changed files with 821 additions and 518 deletions
|
@ -247,14 +247,13 @@ class TestGeneratedCases(unittest.TestCase):
|
|||
"""
|
||||
self.run_cases_test(input, output)
|
||||
|
||||
def test_predictions_and_eval_breaker(self):
|
||||
def test_predictions(self):
|
||||
input = """
|
||||
inst(OP1, (arg -- rest)) {
|
||||
}
|
||||
inst(OP3, (arg -- res)) {
|
||||
DEOPT_IF(xxx);
|
||||
res = Py_None;
|
||||
CHECK_EVAL_BREAKER();
|
||||
}
|
||||
family(OP1, INLINE_CACHE_ENTRIES_OP1) = { OP3 };
|
||||
"""
|
||||
|
@ -277,7 +276,6 @@ class TestGeneratedCases(unittest.TestCase):
|
|||
DEOPT_IF(xxx, OP1);
|
||||
res = Py_None;
|
||||
stack_pointer[-1] = res;
|
||||
CHECK_EVAL_BREAKER();
|
||||
DISPATCH();
|
||||
}
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue