[pypy-commit] pypy translation-cleanup: Flowspacify STORE_FAST

rlamy noreply at buildbot.pypy.org
Tue Oct 16 16:05:12 CEST 2012


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: translation-cleanup
Changeset: r58132:19009e068be6
Date: 2012-10-16 15:04 +0100
http://bitbucket.org/pypy/pypy/changeset/19009e068be6/

Log:	Flowspacify STORE_FAST

diff --git a/pypy/objspace/flow/flowcontext.py b/pypy/objspace/flow/flowcontext.py
--- a/pypy/objspace/flow/flowcontext.py
+++ b/pypy/objspace/flow/flowcontext.py
@@ -754,6 +754,11 @@
     def LOAD_DEREF(self, varindex, next_instr):
         self.pushvalue(self.closure[varindex])
 
+    def STORE_FAST(self, varindex, next_instr):
+        w_newvalue = self.popvalue()
+        assert w_newvalue is not None
+        self.locals_stack_w[varindex] = w_newvalue
+
     def BUILD_LIST_FROM_ARG(self, _, next_instr):
         # This opcode was added with pypy-1.8.  Here is a simpler
         # version, enough for annotation.


More information about the pypy-commit mailing list