Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r58131:40ecef084733
Date: 2012-10-16 14:59 +0100
http://bitbucket.org/pypy/pypy/changeset/40ecef084733/

Log:    Flowspacify LOAD_CONST

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
@@ -735,6 +735,10 @@
             raise FlowingError(self, "Local variable referenced before 
assignment")
         self.pushvalue(w_value)
 
+    def LOAD_CONST(self, constindex, next_instr):
+        w_const = self.getconstant_w(constindex)
+        self.pushvalue(w_const)
+
     def LOAD_GLOBAL(self, nameindex, next_instr):
         w_result = self.space.find_global(self.w_globals, 
self.getname_u(nameindex))
         self.pushvalue(w_result)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to