◐ Shell
reader mode source ↗
Skip to content

GH-98831: Remove super-instruction definitions, use macro instructions instead#100124

Closed
gvanrossum wants to merge 2 commits into
python:mainfrom
gvanrossum:remove-supers
Closed

GH-98831: Remove super-instruction definitions, use macro instructions instead#100124
gvanrossum wants to merge 2 commits into
python:mainfrom
gvanrossum:remove-supers

Conversation

@gvanrossum

@gvanrossum gvanrossum commented Dec 8, 2022

Copy link
Copy Markdown
Member

Replace all super-instructions with macros, using a special JOIN op to extract the next oparg. JOIN has a cache effect of one word that is equivalent to bumping next_instr.

Rip out all code for parsing and generating super-instructions.

@brandtbucher

Copy link
Copy Markdown
Member

Not gonna lie, the PR title scared me.

@gvanrossum gvanrossum changed the title GH-98831: Remove super() Dec 9, 2022
@gvanrossum

Copy link
Copy Markdown
Member Author

Clearly I should use more provocative PR titles more often. :-)

@python python deleted a comment from netlify Bot Dec 9, 2022

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

I'm feeling a lot of hesitation about this PR. Maybe we should just leave things as they were and focus on other work (e.g. finish converting more instructions to the explicit stack/cache effects form, and adding arrays).

@gvanrossum

Copy link
Copy Markdown
Member Author

Off-line we decided not to do this. Super-instructions may eventually disappear (when we have a register VM).

@gvanrossum gvanrossum closed this Dec 12, 2022
@gvanrossum gvanrossum deleted the remove-supers branch June 13, 2023 20:38
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