Author: Carl Friedrich Bolz <[email protected]>
Branch: 
Changeset: r50059:ba3ca8aaaef4
Date: 2011-12-02 12:10 +0100
http://bitbucket.org/pypy/pypy/changeset/ba3ca8aaaef4/

Log:    (arigo, cfbolz): some sanity checks

diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -749,8 +749,11 @@
 class Entry(ExtRegistryEntry):
     _about_ = record_known_class
 
-    def compute_result_annotation(self, *args):
-        pass
+    def compute_result_annotation(self, s_inst, s_cls):
+        from pypy.annotation import model as annmodel
+        assert s_cls.is_constant()
+        assert not s_inst.can_be_none()
+        assert isinstance(s_inst, annmodel.SomeInstance)
 
     def specialize_call(self, hop):
         from pypy.rpython.lltypesystem import lltype, rclass
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to