[pypy-svn] r73514 - pypy/branch/decouple-host-opcodes/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Wed Apr 7 19:17:43 CEST 2010


Author: fijal
Date: Wed Apr  7 19:17:38 2010
New Revision: 73514

Modified:
   pypy/branch/decouple-host-opcodes/pypy/interpreter/pycode.py
Log:
break translation - we should not see cpython bytecode during translation


Modified: pypy/branch/decouple-host-opcodes/pypy/interpreter/pycode.py
==============================================================================
--- pypy/branch/decouple-host-opcodes/pypy/interpreter/pycode.py	(original)
+++ pypy/branch/decouple-host-opcodes/pypy/interpreter/pycode.py	Wed Apr  7 19:17:38 2010
@@ -117,6 +117,11 @@
 
         self._compute_flatcall()
 
+    def _freeze_(self):
+        if self.magic == cpython_magic:
+            raise Exception("CPython host codes should not be rendered")
+        # XXX since PyCode is an immutable object, why not return True?
+        return False
 
     def _init_flags(self):
         co_code = self.co_code



More information about the Pypy-commit mailing list