FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-131498: Another refactoring of the code generator by markshannon · Pull Request #131827 · python/cpython · GitHub

Repository navigation

GH-131498: Another refactoring of the code generator - #131827

Merged
markshannon merged 18 commits into
python:mainfrom
faster-cpython:code-gen-refactor-again
Mar 31, 2025
Merged

markshannon merged 18 commits into
python:mainfrom
faster-cpython:code-gen-refactor-again

Conversation

markshannon commented Mar 28, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

The main change in this refactoring is to replace the mutable StackOffset with an immutable PointerOffset.

The new class fills much the same role.
We use these offsets like numerical values, so making them immutable makes the code more robust and a bit simpler.

There is no change to the generated code, apart from a few variable declarations that get reordered.

markshannon merged commit c535a13 into python:main Mar 31, 2025
markshannon deleted the code-gen-refactor-again branch March 31, 2025 14:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL