[pypy-commit] pypy pep526: Stack effect values for new annotation opcodes.

alcarithemad pypy.commits at gmail.com
Thu Mar 1 05:07:58 EST 2018


Author: Colin Valliant <alcarithemad at gmail.com>
Branch: pep526
Changeset: r93918:d6987b09241a
Date: 2018-02-14 07:14 -0800
http://bitbucket.org/pypy/pypy/changeset/d6987b09241a/

Log:	Stack effect values for new annotation opcodes.

diff --git a/pypy/interpreter/astcompiler/assemble.py b/pypy/interpreter/astcompiler/assemble.py
--- a/pypy/interpreter/astcompiler/assemble.py
+++ b/pypy/interpreter/astcompiler/assemble.py
@@ -690,6 +690,9 @@
     ops.POP_JUMP_IF_FALSE: -1,
     ops.JUMP_IF_NOT_DEBUG: 0,
 
+    ops.SETUP_ANNOTATIONS: 0,
+    ops.STORE_ANNOTATION: -1,
+
     # TODO
     ops.BUILD_LIST_FROM_ARG: 1,
 


More information about the pypy-commit mailing list