[pypy-svn] r62854 - in pypy/trunk/pypy/rpython: . ootypesystem

arigo at codespeak.net arigo at codespeak.net
Wed Mar 11 12:37:44 CET 2009


Author: arigo
Date: Wed Mar 11 12:37:43 2009
New Revision: 62854

Modified:
   pypy/trunk/pypy/rpython/llinterp.py
   pypy/trunk/pypy/rpython/ootypesystem/ooopimpl.py
Log:
Fix test_lloperation.py.


Modified: pypy/trunk/pypy/rpython/llinterp.py
==============================================================================
--- pypy/trunk/pypy/rpython/llinterp.py	(original)
+++ pypy/trunk/pypy/rpython/llinterp.py	Wed Mar 11 12:37:43 2009
@@ -554,6 +554,15 @@
     def op_jit_marker(self, *args):
         pass
 
+    def op_promote_virtualizable(self, *args):
+        pass
+
+    def op_get_exception_addr(self, *args):
+        raise NotImplementedError
+
+    def op_get_exc_value_addr(self, *args):
+        raise NotImplementedError
+
     def op_instrument_count(self, ll_tag, ll_label):
         pass # xxx for now
 

Modified: pypy/trunk/pypy/rpython/ootypesystem/ooopimpl.py
==============================================================================
--- pypy/trunk/pypy/rpython/ootypesystem/ooopimpl.py	(original)
+++ pypy/trunk/pypy/rpython/ootypesystem/ooopimpl.py	Wed Mar 11 12:37:43 2009
@@ -16,6 +16,9 @@
     checkinst(inst)
     return bool(inst)
 
+def op_ooisnull(inst):
+    return not op_oononnull(inst)
+
 def op_oois(obj1, obj2):
     if is_inst(obj1):
         checkinst(obj2)
@@ -26,6 +29,9 @@
     else:
         assert False, "oois on something silly"
 
+def op_ooisnot(obj1, obj2):
+    return not op_oois(obj1, obj2)
+
 def op_instanceof(inst, INST):
     return ootype.instanceof(inst, INST)
 



More information about the Pypy-commit mailing list