mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-107901: make compiler inline basic blocks with no line number and no fallthrough (#114750)
This commit is contained in:
parent
41fde89e47
commit
2091fb2a85
3 changed files with 108 additions and 39 deletions
|
@ -1466,9 +1466,8 @@ class TestBranchAndJumpEvents(CheckEvents):
|
|||
('branch', 'func', 4, 4),
|
||||
('line', 'func', 5),
|
||||
('line', 'meth', 1),
|
||||
('jump', 'func', 5, 5),
|
||||
('jump', 'func', 5, '[offset=114]'),
|
||||
('branch', 'func', '[offset=120]', '[offset=124]'),
|
||||
('jump', 'func', 5, '[offset=118]'),
|
||||
('branch', 'func', '[offset=122]', '[offset=126]'),
|
||||
('line', 'get_events', 11)])
|
||||
|
||||
self.check_events(func, recorders = FLOW_AND_LINE_RECORDERS, expected = [
|
||||
|
@ -1482,9 +1481,8 @@ class TestBranchAndJumpEvents(CheckEvents):
|
|||
('line', 'func', 5),
|
||||
('line', 'meth', 1),
|
||||
('return', 'meth', None),
|
||||
('jump', 'func', 5, 5),
|
||||
('jump', 'func', 5, '[offset=114]'),
|
||||
('branch', 'func', '[offset=120]', '[offset=124]'),
|
||||
('jump', 'func', 5, '[offset=118]'),
|
||||
('branch', 'func', '[offset=122]', '[offset=126]'),
|
||||
('return', 'func', None),
|
||||
('line', 'get_events', 11)])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue