Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: optresult
Changeset: r78111:d8fba7cf087d
Date: 2015-06-15 13:02 +0200
http://bitbucket.org/pypy/pypy/changeset/d8fba7cf087d/

Log:    add a comment

diff --git a/rpython/jit/backend/llsupport/descr.py 
b/rpython/jit/backend/llsupport/descr.py
--- a/rpython/jit/backend/llsupport/descr.py
+++ b/rpython/jit/backend/llsupport/descr.py
@@ -131,6 +131,9 @@
                 heaptracker.int2adr(self.parent_descr.get_vtable()),
                 lltype.Ptr(rclass.OBJECT_VTABLE))
             tpptr = lltype.cast_opaque_ptr(rclass.OBJECTPTR, struct).typeptr
+            # this comparison is necessary, since we want to make sure
+            # that vtable for JitVirtualRef is the same without actually 
reading
+            # fields
             if tpptr != cls:
                 assert rclass.ll_isinstance(lltype.cast_opaque_ptr(
                     rclass.OBJECTPTR, struct), cls)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to