classification
Title: Use JUMP_FORWARD for all forward jumps.
Type: Stage: patch review
Components: Interpreter Core Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Mark.Shannon Nosy List: Mark.Shannon
Priority: normal Keywords: patch

Created on 2021-10-06 10:06 by Mark.Shannon, last changed 2021-10-09 12:25 by Mark.Shannon.

Pull Requests
URL Status Linked Edit
PR 28755 merged Mark.Shannon, 2021-10-06 10:21
PR 28829 merged Mark.Shannon, 2021-10-09 12:25
Messages (1)
msg403291 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-10-06 10:06
Python has two unconditional jumps, JUMP_ABSOLUTE and JUMP_FORWARD.

The bytecode compiler should ensure that all forward jumps use JUMP_FORWARD and all backwards jumps use JUMP_ABSOLUTE.

That way, the interpreter will know that JUMP_ABSOLUTE jumps are backwards and won't need to check.
History
Date User Action Args
2021-10-09 12:25:48Mark.Shannonsetpull_requests: + pull_request27145
2021-10-06 10:21:38Mark.Shannonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request27099
2021-10-06 10:06:24Mark.Shannoncreate