Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py #107971

Merged
merged 18 commits into from Aug 16, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Aug 15, 2023

@Eclips4 Eclips4 added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Aug 15, 2023
Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

Mostly LGTM. I've left a couple comments where there might be something further to be done.

(I'm approving under the assumption the comments will be resolved first, one way or another.)

Include/opcode_ids.h Show resolved Hide resolved
Lib/opcode.py Show resolved Hide resolved
@iritkatriel
Copy link
Member Author

Mostly LGTM. I've left a couple comments where there might be something further to be done.

Thanks. A couple of tests for tracing/instrumentation are failing, I'm still debugging that.

@brettcannon brettcannon removed their request for review August 15, 2023 21:57
@iritkatriel iritkatriel marked this pull request as ready for review August 16, 2023 16:17
@iritkatriel iritkatriel requested a review from a team as a code owner August 16, 2023 16:17
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

The revolution! It's almost here!!

A few nits but no need to wait for a re-review.

@@ -1617,197 +1616,197 @@ def _prepare_test_cases():
Instruction = dis.Instruction

expected_opinfo_outer = [
Copy link
Member

Choose a reason for hiding this comment

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

This test is just preposterous. Let's commit to doing this in a different way in a future PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

@markshannon loves to hate this test too.

Tools/build/deepfreeze.py Show resolved Hide resolved
Makefile.pre.in Show resolved Hide resolved
Tools/cases_generator/generate_cases.py Outdated Show resolved Hide resolved
Tools/cases_generator/generate_cases.py Outdated Show resolved Hide resolved
@iritkatriel iritkatriel enabled auto-merge (squash) August 16, 2023 22:13
@iritkatriel iritkatriel merged commit 665a439 into python:main Aug 16, 2023
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants