Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@jkchandalia
Copy link
Contributor

@jkchandalia jkchandalia commented May 1, 2023

Make the dis module display the names of the args for opcodes CALL_INTRINSIC_*.

Fixes #103963

@jkchandalia
Copy link
Contributor Author

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Looks good, a few comments. You'll also have to add a NEWS entry.

Lib/test/test_dis.py Outdated Show resolved Hide resolved
Tools/build/generate_opcode_h.py Outdated Show resolved Hide resolved
Tools/build/generate_opcode_h.py Outdated Show resolved Hide resolved
@jkchandalia
Copy link
Contributor Author

@iritkatriel @JelleZijlstra I've reviewed your comments and updated the PR. Please let me know if you see anything else or if I should convert to normal PR.

Lib/test/test_dis.py Outdated Show resolved Hide resolved
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Looks great!

@JelleZijlstra
Copy link
Member

I'll give Irit some time to take another look, but I think this is ready to merge.



/* Binary Functions: */
#define INTRINSIC_INVALID 0
Copy link
Member

Choose a reason for hiding this comment

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

Looks like INTRINSIC_INVALID is defined twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to differentiate between invalid for the two CALL_INTRINSIC_* opcodes.

@iritkatriel iritkatriel marked this pull request as ready for review May 2, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dis: Show names of intrinsics

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.