Author: Raffael Tfirst <raffael.tfi...@gmail.com> Branch: py3.5-async Changeset: r85600:d00cb920f5c1 Date: 2016-07-07 16:40 +0200 http://bitbucket.org/pypy/pypy/changeset/d00cb920f5c1/
Log: Add stack effect for async 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 @@ -599,7 +599,7 @@ ops.PRINT_EXPR: -1, - ops.WITH_CLEANUP_START: -1, + ops.WITH_CLEANUP_START: 1, ops.WITH_CLEANUP_FINISH: -1, # XXX Sometimes more ops.LOAD_BUILD_CLASS: 1, ops.POP_BLOCK: 0, @@ -640,6 +640,12 @@ ops.LOAD_DEREF: 1, ops.STORE_DEREF: -1, ops.DELETE_DEREF: 0, + + ops.GET_AWAITABLE: 0, + ops.SETUP_ASYNC_WITH: 6, + ops.BEFORE_ASYNC_WITH: 1, + ops.GET_AITER: 0, + ops.GET_ANEXT: 1, ops.LOAD_CONST: 1, _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit