[pypy-svn] r37697 - pypy/branch/jit-virtual-world/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Wed Jan 31 22:59:17 CET 2007


Author: arigo
Date: Wed Jan 31 22:59:15 2007
New Revision: 37697

Modified:
   pypy/branch/jit-virtual-world/pypy/interpreter/pyopcode.py
Log:
Trivial fixes.


Modified: pypy/branch/jit-virtual-world/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/branch/jit-virtual-world/pypy/interpreter/pyopcode.py	(original)
+++ pypy/branch/jit-virtual-world/pypy/interpreter/pyopcode.py	Wed Jan 31 22:59:15 2007
@@ -65,7 +65,7 @@
                 self.blockstack = []
             depth = stuff & sys.maxint
 
-            pycode = hint(pycode, deepfrozen=True)
+            pycode = hint(pycode, deepfreeze=True)
             self.pycode = pycode
             self.valuestackdepth = depth
 
@@ -255,7 +255,7 @@
     ### accessor functions ###
 
     def getcode(self):
-        return hint(self.pycode, deepfrozen=True)
+        return hint(hint(self.pycode, promote=True), deepfreeze=True)
 
     def getlocalvarname(self, index):
         return self.getcode().co_varnames[index]



More information about the Pypy-commit mailing list