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

gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew #98559

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

Merged
merged 13 commits into from
Oct 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Re-order Replaced Opcodes table by replaced opcode
  • Loading branch information
CAM-Gerlach committed Oct 23, 2022
commit a0b90d820a70c2e932dc76ea984e038a0d1532e8
60 changes: 30 additions & 30 deletions 60 Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1447,36 +1447,36 @@ New opcodes
Replaced opcodes
----------------

+-----------------------------------+------------------------------------+-----------------------------------------+
| New Opcode(s) | Replaced Opcode(s) | Notes |
+===================================+====================================+=========================================+
| :opcode:`BEFORE_WITH` | | :opcode:`!SETUP_WITH` | :keyword:`with` block setup |
| | | :opcode:`!SETUP_ASYNC_WITH` | |
+-----------------------------------+------------------------------------+-----------------------------------------+
| :opcode:`BINARY_OP` | | :opcode:`!BINARY_*` | Replaced all numeric binary/in-place |
| | | :opcode:`!INPLACE_*` | opcodes with a single opcode |
+-----------------------------------+------------------------------------+-----------------------------------------+
| | :opcode:`CALL` | | :opcode:`!CALL_FUNCTION` | Decouples argument shifting for methods |
| | :opcode:`KW_NAMES` | | :opcode:`!CALL_FUNCTION_KW` | from handling of keyword arguments; |
| | :opcode:`PRECALL` | | :opcode:`!CALL_METHOD` | allows better specialization of calls |
| | :opcode:`PUSH_NULL` | | |
+-----------------------------------+------------------------------------+-----------------------------------------+
| | :opcode:`CHECK_EXC_MATCH` | | :opcode:`!JUMP_IF_NOT_EXC_MATCH` | Now performs check |
| | :opcode:`CHECK_EG_MATCH` | | :opcode:`!JUMP_IF_NOT_EG_MATCH` | but doesn't jump |
+-----------------------------------+------------------------------------+-----------------------------------------+
| | :opcode:`COPY` | | :opcode:`!DUP_TOP` | Stack manipulation instructions |
| | :opcode:`SWAP` | | :opcode:`!DUP_TOP_TWO` | |
| | | :opcode:`!ROT_TWO` | |
| | | :opcode:`!ROT_THREE` | |
| | | :opcode:`!ROT_FOUR` | |
| | | :opcode:`!ROT_N` | |
+-----------------------------------+------------------------------------+-----------------------------------------+
| | :opcode:`JUMP_BACKWARD` | | :opcode:`!JUMP_ABSOLUTE` | All jump opcodes now relative; |
| | :opcode:`POP_JUMP_BACKWARD_IF_* | | :opcode:`!POP_JUMP_IF_FALSE` | arg is offset from current instruction |
| <POP_JUMP_BACKWARD_IF_TRUE>` | | :opcode:`!POP_JUMP_IF_TRUE` | rather than absolute location |
| | :opcode:`POP_JUMP_FORWARD_IF_* | | and most op names contain direction; |
| <POP_JUMP_FORWARD_IF_TRUE>` | | added ``NONE`` & ``NOT_NONE`` variants |
+-----------------------------------+------------------------------------+-----------------------------------------+
+------------------------------------+-----------------------------------+-----------------------------------------+
| Replaced Opcode(s) | New Opcode(s) | Notes |
+====================================+===================================+=========================================+
| | :opcode:`!BINARY_*` | :opcode:`BINARY_OP` | Replaced all numeric binary/in-place |
| | :opcode:`!INPLACE_*` | | opcodes with a single opcode |
+------------------------------------+-----------------------------------+-----------------------------------------+
| | :opcode:`!CALL_FUNCTION` | | :opcode:`CALL` | Decouples argument shifting for methods |
| | :opcode:`!CALL_FUNCTION_KW` | | :opcode:`KW_NAMES` | from handling of keyword arguments; |
| | :opcode:`!CALL_METHOD` | | :opcode:`PRECALL` | allows better specialization of calls |
| | | :opcode:`PUSH_NULL` | |
+------------------------------------+-----------------------------------+-----------------------------------------+
| | :opcode:`!DUP_TOP` | | :opcode:`COPY` | Stack manipulation instructions |
| | :opcode:`!DUP_TOP_TWO` | | :opcode:`SWAP` | |
| | :opcode:`!ROT_TWO` | | |
| | :opcode:`!ROT_THREE` | | |
| | :opcode:`!ROT_FOUR` | | |
| | :opcode:`!ROT_N` | | |
+------------------------------------+-----------------------------------+-----------------------------------------+
| | :opcode:`!JUMP_IF_NOT_EXC_MATCH` | | :opcode:`CHECK_EXC_MATCH` | Now performs check but doesn't jump |
| | :opcode:`!JUMP_IF_NOT_EG_MATCH` | | :opcode:`CHECK_EG_MATCH` | |
iritkatriel marked this conversation as resolved.
Show resolved Hide resolved
+------------------------------------+-----------------------------------+-----------------------------------------+
| | :opcode:`!JUMP_ABSOLUTE` | | :opcode:`JUMP_BACKWARD` | All jump opcodes now relative; |
| | :opcode:`!POP_JUMP_IF_FALSE` | | :opcode:`POP_JUMP_BACKWARD_IF_* | arg is offset from current instruction |
| | :opcode:`!POP_JUMP_IF_TRUE` | <POP_JUMP_BACKWARD_IF_TRUE>` | rather than absolute location; |
| | | :opcode:`POP_JUMP_FORWARD_IF_* | added ``NONE`` & ``NOT_NONE`` variants |
| | <POP_JUMP_FORWARD_IF_TRUE>` | |
+------------------------------------+-----------------------------------+-----------------------------------------+
| | :opcode:`!SETUP_WITH` | :opcode:`BEFORE_WITH` | :keyword:`with` block setup |
| | :opcode:`!SETUP_ASYNC_WITH` | | |
+------------------------------------+-----------------------------------+-----------------------------------------+


.. _whatsnew311-removed-opcodes:
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.