gh-109256: allocate opcode IDs for internal opcodes in their own range#109269
gh-109256: allocate opcode IDs for internal opcodes in their own range#109269iritkatriel merged 5 commits into
Conversation
There was a problem hiding this comment.
Looks good, in general.
test_dis will need fixing up, of course.
As you need to fix test_dis anyway could you make RESUME opcode 1? If it is to have a special number, it might as well be memorable.
map_op(1, "RESUME")
next_opcode = 2
Sorry, something went wrong.
RESUME has an arg though, so I thought it should be after HAVE_ARGUMENT? Unless we want to special case it. |
Sorry, something went wrong.
markshannon
left a comment
There was a problem hiding this comment.
Looks good. Should save a fair bit of future churn.
Merge conflicts need fixing, obviously.
Sorry, something went wrong.
📚 Documentation preview 📚: https://cpython-previews--109269.org.readthedocs.build/