[pypy-svn] r63769 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/test

fijal at codespeak.net fijal at codespeak.net
Tue Apr 7 06:01:51 CEST 2009


Author: fijal
Date: Tue Apr  7 06:01:50 2009
New Revision: 63769

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/backend/test/runner.py
Log:
kill the hacks here as well


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/test/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/test/runner.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/test/runner.py	Tue Apr  7 06:01:50 2009
@@ -138,8 +138,11 @@
         t_box = BoxPtr(lltype.cast_opaque_ptr(llmemory.GCREF, t))
         T_box = ConstInt(cpu.cast_adr_to_int(vtable_for_T_addr))
         null_box = ConstPtr(lltype.cast_opaque_ptr(llmemory.GCREF, lltype.nullptr(T)))
-        if not getattr(self.cpu, 'fake', None):
-            assert self.execute_operation(rop.GUARD_CLASS, [t_box, T_box], 'void') == None
+        self.execute_operation(rop.GUARD_CLASS, [t_box, T_box], 'void')
+        assert not self.cpu.guard_failed()
+        #self.execute_operation(rop.GUARD_CLASS_INVERSE, [t_box, null_box],
+        #                       'void')
+        #assert not self.cpu.guard_failed()
 
     def test_failing_guards(self):
         vtable_for_T = lltype.malloc(MY_VTABLE, immortal=True)
@@ -164,8 +167,7 @@
                              (rop.GUARD_CLASS, [u_box, T_box]),
                              (rop.GUARD_VALUE_INVERSE, [BoxInt(10), BoxInt(10)]),
                              ]:
-            if opname != rop.GUARD_CLASS or not getattr(self.cpu, 'fake', None):
-                assert self.execute_operation(opname, args, 'void') == None
-                assert self.cpu.guard_failed()
+            assert self.execute_operation(opname, args, 'void') == None
+            assert self.cpu.guard_failed()
 
             



More information about the Pypy-commit mailing list