Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: guard-compatible
Changeset: r87250:f9845ecd2b54
Date: 2016-08-26 15:03 +0100
http://bitbucket.org/pypy/pypy/changeset/f9845ecd2b54/

Log:    just print the pointer constant

diff --git a/rpython/jit/metainterp/compatible.py 
b/rpython/jit/metainterp/compatible.py
--- a/rpython/jit/metainterp/compatible.py
+++ b/rpython/jit/metainterp/compatible.py
@@ -294,7 +294,7 @@
                     sid = 
self.metainterp_sd.cpu.get_actual_typeid(rffi.cast(llmemory.GCREF, 
llstr("abc")))
                     if sid == tid:
                         return hlstr(rffi.cast(lltype.Ptr(rstr.STR), 
arg.getref_base()))
-                return "<some const ptr>"
+                return "0x%x" % lltype.cast_ptr_to_int(arg.value)
             else:
                 return "None"
         elif isinstance(arg, ConstFloat):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to