Author: Ronan Lamy <[email protected]>
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.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to