[pypy-svn] r58476 - in pypy/branch/oo-jit/pypy/jit/codegen/cli: . test

antocuni at codespeak.net antocuni at codespeak.net
Mon Sep 29 13:51:53 CEST 2008


Author: antocuni
Date: Mon Sep 29 13:51:52 2008
New Revision: 58476

Modified:
   pypy/branch/oo-jit/pypy/jit/codegen/cli/rgenop.py
   pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py
Log:
more tests passing



Modified: pypy/branch/oo-jit/pypy/jit/codegen/cli/rgenop.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/codegen/cli/rgenop.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/codegen/cli/rgenop.py	Mon Sep 29 13:51:52 2008
@@ -206,6 +206,8 @@
     def revealconst(self, T):
         if T is ootype.Object:
             return ootype.NULL # XXX?
+        elif isinstance(T, ootype.OOType):
+            return ootype.null(T) # XXX
         return lltype.cast_primitive(T, self.value)
 
     def getCliType(self):

Modified: pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py	Mon Sep 29 13:51:52 2008
@@ -106,8 +106,6 @@
     def test_freeze_booleffects_correctly(self):
         py.test.skip("replay: NotImplementedError")
 
-    test_degenerated_before_return = skip
-    test_degenerated_before_return_2 = skip
     test_degenerated_at_return = skip
     test_degenerated_via_substructure = skip
     test_red_subclass = skip



More information about the Pypy-commit mailing list