-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py #107971
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
Conversation
iritkatriel
commented
Aug 15, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Generate opcode metadata from bytecodes.c instead of opcode.py #105481
…de_Deopt as part of metadata
…codes map in dis.
There was a problem hiding this 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.)
Thanks. A couple of tests for tracing/instrumentation are failing, I'm still debugging that. |
… instrumented opcode (python#107978)
There was a problem hiding this 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 = [ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.