summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-06-07 22:52:00 (GMT)
committerGitHub <noreply@github.com>2021-06-07 22:52:00 (GMT)
commit631f9938b1604d4f893417ec339b9e0fa9196fb1 (patch)
tree6a72bf35dafb42ad3d00e153e244538db4a646ee /Doc/library/dis.rst
parente915db3e9e512249a6f494c0b331db2d021e1f56 (diff)
downloadcpython-631f9938b1604d4f893417ec339b9e0fa9196fb1.zip
cpython-631f9938b1604d4f893417ec339b9e0fa9196fb1.tar.gz
cpython-631f9938b1604d4f893417ec339b9e0fa9196fb1.tar.bz2
bpo-43693: Add the MAKE_CELL opcode and interleave fast locals offsets. (gh-26396)
This moves logic out of the frame initialization code and into the compiler and eval loop. Doing so simplifies the runtime code and allows us to optimize it better. https://bugs.python.org/issue43693
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index bc206f7..65fbb00 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -1056,6 +1056,14 @@ All of the following opcodes use their arguments.
Deletes local ``co_varnames[var_num]``.
+.. opcode:: MAKE_CELL (i)
+
+ Creates a new cell in slot ``i``. If that slot is empty then
+ that value is stored into the new cell.
+
+ .. versionadded:: 3.11
+
+
.. opcode:: LOAD_CLOSURE (i)
Pushes a reference to the cell contained in slot ``i`` of the "fast locals"