diff options
author | Mark Shannon <mark@hotpy.org> | 2025-03-31 12:52:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-31 12:52:48 (GMT) |
commit | c535a132e40a516a7cca219b2659e85bccaa0529 (patch) | |
tree | ba69de6aa8313c37e5486c49c2763688e2b16637 /Python/bytecodes.c | |
parent | ba11f45dd969dfb039dfb47270de4f8c6a03d241 (diff) | |
download | cpython-c535a132e40a516a7cca219b2659e85bccaa0529.zip cpython-c535a132e40a516a7cca219b2659e85bccaa0529.tar.gz cpython-c535a132e40a516a7cca219b2659e85bccaa0529.tar.bz2 |
GH-131498: Another refactoring of the code generator (GH-131827)
* Rename 'defined' attribute to 'in_local' to more accurately reflect how it is used
* Make death of variables explicit even for array variables.
* Convert in_memory from boolean to stack offset
* Don't apply liveness analyis to optimizer generated code
* Add 'out' parameter to stack.pop
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 2d18f65..4342444 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1484,7 +1484,7 @@ dummy_func( (void)counter; } - op(_UNPACK_SEQUENCE, (seq -- output[oparg], top[0])) { + op(_UNPACK_SEQUENCE, (seq -- unused[oparg], top[0])) { PyObject *seq_o = PyStackRef_AsPyObjectSteal(seq); int res = _PyEval_UnpackIterableStackRef(tstate, seq_o, oparg, -1, top); Py_DECREF(seq_o); @@ -1533,7 +1533,7 @@ dummy_func( DECREF_INPUTS(); } - inst(UNPACK_EX, (seq -- left[oparg & 0xFF], unused, right[oparg >> 8], top[0])) { + inst(UNPACK_EX, (seq -- unused[oparg & 0xFF], unused, unused[oparg >> 8], top[0])) { PyObject *seq_o = PyStackRef_AsPyObjectSteal(seq); int res = _PyEval_UnpackIterableStackRef(tstate, seq_o, oparg & 0xFF, oparg >> 8, top); Py_DECREF(seq_o); |